Interface CBElementParserType<T extends CBASTElementType>
- Type Parameters:
T- The precise type of AST element
- All Known Implementing Classes:
CBDeclarationParser,CBDocumentationParser,CBFieldParser,CBImportParser,CBLanguageParser,CBPackageDeclarationParser,CBProtocolParser,CBRecordParser,CBTypeExpressionParser,CBVariantCaseParser,CBVariantParser
public interface CBElementParserType<T extends CBASTElementType>
The type of element parsers.
-
Method Summary
Modifier and TypeMethodDescriptionparse(CBParseContextType context, com.io7m.jsx.SExpressionType expression) Parse an element.
-
Method Details
-
parse
T parse(CBParseContextType context, com.io7m.jsx.SExpressionType expression) throws CBParseFailedException Parse an element.- Parameters:
context- The contextexpression- The expression- Returns:
- A parsed element
- Throws:
CBParseFailedException- On parse errors
-