Class BasicTagAnalyzer
- java.lang.Object
-
- com.scriptbasic.syntax.AbstractAnalyzer<Expression>
-
- com.scriptbasic.syntax.expression.BasicTagAnalyzer
-
- All Implemented Interfaces:
Analyzer<Expression>,TagAnalyzer
public final class BasicTagAnalyzer extends AbstractAnalyzer<Expression> implements TagAnalyzer
Analyze a tag. A tag is the most primitive part of an expression that does not contain any further operators (unless the operators are enclosed between brackets some way).A tag is defined as the following:
tag ::= UNOP tag TRUE | FALSE NUMBER STRING '(' expression ')' VARIABLE { '[' expression_list ']' } FUNC '(' expression_list ')'- Author:
- Peter Verhas
-
-
Constructor Summary
Constructors Constructor Description BasicTagAnalyzer(Context ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expressionanalyze()
-
-
-
Constructor Detail
-
BasicTagAnalyzer
public BasicTagAnalyzer(Context ctx)
-
-
Method Detail
-
analyze
public Expression analyze() throws AnalysisException
- Specified by:
analyzein interfaceAnalyzer<Expression>- Specified by:
analyzein interfaceTagAnalyzer- Returns:
- the analysis result.
- Throws:
AnalysisException- in case of exception
-
-