Class CBDeclarationParser
java.lang.Object
com.io7m.cedarbridge.schema.parser.internal.CBDeclarationParser
- All Implemented Interfaces:
CBElementParserType<CBASTDeclarationType>
public final class CBDeclarationParser
extends Object
implements CBElementParserType<CBASTDeclarationType>
A parser for declarations.
-
Constructor Summary
ConstructorsConstructorDescriptionCBDeclarationParser(boolean inTooLateForLanguage) A parser for declarations. -
Method Summary
Modifier and TypeMethodDescriptionparse(CBParseContextType context, com.io7m.jsx.SExpressionType expression) Parse an element.
-
Constructor Details
-
CBDeclarationParser
public CBDeclarationParser(boolean inTooLateForLanguage) A parser for declarations.- Parameters:
inTooLateForLanguage-trueif it is too late for a language declaration to appear
-
-
Method Details
-
parse
public CBASTDeclarationType parse(CBParseContextType context, com.io7m.jsx.SExpressionType expression) throws CBParseFailedException Description copied from interface:CBElementParserTypeParse an element.- Specified by:
parsein interfaceCBElementParserType<CBASTDeclarationType>- Parameters:
context- The contextexpression- The expression- Returns:
- A parsed element
- Throws:
CBParseFailedException- On parse errors
-