Package org.yamcs.scos2k.ol
Class OLParser
java.lang.Object
org.yamcs.scos2k.ol.BaseOLParser
org.yamcs.scos2k.ol.OLParser
- All Implemented Interfaces:
OLParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.yamcs.scos2k.ol.OLParserConstants
ABS, ABS_TIME_ADS, ABS_TIME_ASCIIA, ABS_TIME_ASCIIB, AND, ARCCOS, ARCCOTAN, ARCSIN, ARCTAN, COS, COTAN, DEFAULT, DELTA_TIME, DIG2, DIG3, DIG4, DIG6, DIG7, ELSE, ENDIF, EOF, EXPONENT, FALSE, FLOATING_POINT_LITERAL, IDENTIFIER, IF, INTEGER_LITERAL, LAND, LNOT, LOR, NOR, NOT, OR, RETURN, SIN, STRING_LITERAL, SYNTH, SYSTEM_DATE, SYSTEM_TIME, TAN, THEN, tokenImage, TRUE, XOR -
Constructor Summary
ConstructorsConstructorDescriptionOLParser(InputStream stream) Constructor with InputStream.OLParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal ExpressionCodefinal OperationAddOp()final List<ExpressionCode> final voidfinal voidfinal ExpressionCodeConstant()final voidDisable tracing.final voidEnable tracing.final ExpressionCodefinal voidFormula()final StringGenerate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final ExpressionCodefinal OperationLogicOp()final OperationLogicOp1()final OperationMulOp()final ExpressionCodeprotected voidparse(StringBuilder body) final ExpressionCodevoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final ExpressionCodefinal OperationRelOp()final ExpressionCodefinal OperationShiftOp()final voidfinal voidfinal ExpressionCodeSynth()final ExpressionCodeMethods inherited from class org.yamcs.scos2k.ol.BaseOLParser
addVariable, generateCode, generateCodeImports, generateCodeStandalone, getEngType, getIdentifierCode, getInputParameters, getReturnCode, getSynthExpression, isGlobalVar, isLocalVar, isNoTrigger, parseAdsTime, parseAsciiATime, parseAsciiBTime, parseDeltaTime
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
OLParser
Constructor with InputStream. -
OLParser
Constructor with InputStream and supplied encoding -
OLParser
Constructor. -
OLParser
Constructor with generated Token Manager.
-
-
Method Details
-
parse
- Specified by:
parsein classBaseOLParser- Throws:
ParseException
-
Formula
- Throws:
ParseException
-
StatementList
- Throws:
ParseException
-
Statement
- Throws:
ParseException
-
ConditionalStatement
- Throws:
ParseException
-
AssignmentStatement
- Throws:
ParseException
-
Expression
- Throws:
ParseException
-
LogicalExpression
- Throws:
ParseException
-
ShiftExpression
- Throws:
ParseException
-
RelationlExpression
- Throws:
ParseException
-
AdditiveExpression
- Throws:
ParseException
-
MultiplicativeExpression
- Throws:
ParseException
-
UnaryExpression
- Throws:
ParseException
-
PrimaryExpression
- Throws:
ParseException
-
ArgumentList
- Throws:
ParseException
-
FunctionName
- Throws:
ParseException
-
Synth
- Throws:
ParseException
-
Constant
- Throws:
ParseException
-
RelOp
- Throws:
ParseException
-
LogicOp1
- Throws:
ParseException
-
ShiftOp
- Throws:
ParseException
-
AddOp
- Throws:
ParseException
-
MulOp
- Throws:
ParseException
-
LogicOp
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-