Package | Description |
---|---|
com.whitestein.lsps.lang.parser |
This package contains ANTLR-based LSPS language parser (
Parser ). |
Modifier and Type | Method and Description |
---|---|
protected ParsedExpression |
AbstractParser.createConstant(org.antlr.runtime.tree.Tree tree,
Object constant,
Type type)
Creates constant of the given type, with the given value
|
protected ParsedExpression |
AbstractParser.parse(org.antlr.runtime.tree.Tree tree,
Type expectedType)
Parse an expression from a tree for the given
expectedType . |
protected ParsedExpression |
AbstractParser.parseInNamespace(org.antlr.runtime.tree.Tree tree,
Type expectedType,
NamespaceModel namespace) |
protected ParsedExpression |
AbstractParser.parseInNewNamespace(java.util.function.Supplier<ParsedExpression> worker) |
protected ParsedExpression |
AbstractParser.parseInNewNamespace(org.antlr.runtime.tree.Tree tree,
Type expectedType)
Parses a given tree in a new namespace to provide a correct separation of
local variables.
|
ParsedExpression |
Parser.parseLax(AntlrExpressionTree expressionTree,
Type expectedType)
Parses an expression from a pre-parsed antlr tree for the given expected type.
|
protected ParsedExpression |
Parser.parseNoCheck(org.antlr.runtime.tree.Tree tree,
Type expectedType) |
protected abstract ParsedExpression |
AbstractParser.parseNoCheck(org.antlr.runtime.tree.Tree tree,
Type expectedType)
Parse expression.
|
protected ParsedExpression |
Parser.validateOrConvert(ParsedExpression expr,
Type expectedType) |
protected ParsedExpression |
AbstractParser.validateOrConvert(ParsedExpression expr,
Type expectedType)
Provides some validation and conversion
|
Modifier and Type | Method and Description |
---|---|
protected ParsedExpression |
Parser.validateOrConvert(ParsedExpression expr,
Type expectedType) |
protected ParsedExpression |
AbstractParser.validateOrConvert(ParsedExpression expr,
Type expectedType)
Provides some validation and conversion
|
Modifier and Type | Method and Description |
---|---|
protected ParsedExpression |
AbstractParser.parseInNewNamespace(java.util.function.Supplier<ParsedExpression> worker) |
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.