modesteditor.core.antlrparser
Class ModestParser
java.lang.Object
antlr.Parser
antlr.LLkParser
modesteditor.core.antlrparser.ModestParser
- All Implemented Interfaces:
- ModestParserTokenTypes
- Direct Known Subclasses:
- ModestOutlineParser
public class ModestParser
- extends antlr.LLkParser
- implements ModestParserTokenTypes
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface modesteditor.core.antlrparser.ModestParserTokenTypes |
AND, AND_EQUAL, ANDAND, CHAR, COLON, COMMA, COMMENT, DIV, DIV_EQUAL, DOT, DOTDOT, EOF, EQUAL, EQUALEQUAL, EXPONENT_PART, FLOAT, FLOAT_SUFFIX, GT, GTE, ID, INT, LBRACE, LBRACKET, LEFTSHIFT, LITERAL_action, LITERAL_actions, LITERAL_alt, LITERAL_bool, LITERAL_break, LITERAL_by, LITERAL_catch, LITERAL_clock, LITERAL_const, LITERAL_defaults, LITERAL_do, LITERAL_exception, LITERAL_extend, LITERAL_extern, LITERAL_false, LITERAL_float, LITERAL_guards, LITERAL_hide, LITERAL_impatient, LITERAL_int, LITERAL_not_urgent, LITERAL_palt, LITERAL_par, LITERAL_patient, LITERAL_prefix, LITERAL_process, LITERAL_range, LITERAL_relabel, LITERAL_return, LITERAL_set, LITERAL_struct, LITERAL_throw, LITERAL_true, LITERAL_try, LITERAL_typedef, LITERAL_urgent, LITERAL_when, LPAR, LSHIFT_EQUAL, LT, LTE, MINUS, MINUS_EQUAL, MINUSMINUS, ML_COMMENT, NOT, NOT_EQUAL, NULL_TREE_LOOKAHEAD, NUMERIC, OR, OR_EQUAL, OROR, PLUS, PLUS_EQUAL, PLUSPLUS, QUESTION, RBRACE, RBRACKET, REMAINDER, REMAINDER_EQUAL, RIGHTSHIFT, RPAR, RSHIFT_EQUAL, SEMI, STRING, TIME_EQUAL, TIMES, TIMES_EQUAL, TWIDDLE, ULEFTSHIFT, ULSHIFT_EQUAL, URIGHTSHIFT, URSHIFT_EQUAL, WS, XOR, XOR_EQUAL |
Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
problems
public java.util.ArrayList<org.eclipse.jface.text.IRegion> problems
_tokenNames
public static final java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12
_tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_13
_tokenSet_14
public static final antlr.collections.impl.BitSet _tokenSet_14
_tokenSet_15
public static final antlr.collections.impl.BitSet _tokenSet_15
_tokenSet_16
public static final antlr.collections.impl.BitSet _tokenSet_16
_tokenSet_17
public static final antlr.collections.impl.BitSet _tokenSet_17
_tokenSet_18
public static final antlr.collections.impl.BitSet _tokenSet_18
_tokenSet_19
public static final antlr.collections.impl.BitSet _tokenSet_19
_tokenSet_20
public static final antlr.collections.impl.BitSet _tokenSet_20
_tokenSet_21
public static final antlr.collections.impl.BitSet _tokenSet_21
_tokenSet_22
public static final antlr.collections.impl.BitSet _tokenSet_22
_tokenSet_23
public static final antlr.collections.impl.BitSet _tokenSet_23
_tokenSet_24
public static final antlr.collections.impl.BitSet _tokenSet_24
_tokenSet_25
public static final antlr.collections.impl.BitSet _tokenSet_25
_tokenSet_26
public static final antlr.collections.impl.BitSet _tokenSet_26
_tokenSet_27
public static final antlr.collections.impl.BitSet _tokenSet_27
_tokenSet_28
public static final antlr.collections.impl.BitSet _tokenSet_28
_tokenSet_29
public static final antlr.collections.impl.BitSet _tokenSet_29
_tokenSet_30
public static final antlr.collections.impl.BitSet _tokenSet_30
_tokenSet_31
public static final antlr.collections.impl.BitSet _tokenSet_31
_tokenSet_32
public static final antlr.collections.impl.BitSet _tokenSet_32
_tokenSet_33
public static final antlr.collections.impl.BitSet _tokenSet_33
_tokenSet_34
public static final antlr.collections.impl.BitSet _tokenSet_34
_tokenSet_35
public static final antlr.collections.impl.BitSet _tokenSet_35
_tokenSet_36
public static final antlr.collections.impl.BitSet _tokenSet_36
_tokenSet_37
public static final antlr.collections.impl.BitSet _tokenSet_37
_tokenSet_38
public static final antlr.collections.impl.BitSet _tokenSet_38
_tokenSet_39
public static final antlr.collections.impl.BitSet _tokenSet_39
_tokenSet_40
public static final antlr.collections.impl.BitSet _tokenSet_40
_tokenSet_41
public static final antlr.collections.impl.BitSet _tokenSet_41
_tokenSet_42
public static final antlr.collections.impl.BitSet _tokenSet_42
_tokenSet_43
public static final antlr.collections.impl.BitSet _tokenSet_43
_tokenSet_44
public static final antlr.collections.impl.BitSet _tokenSet_44
_tokenSet_45
public static final antlr.collections.impl.BitSet _tokenSet_45
_tokenSet_46
public static final antlr.collections.impl.BitSet _tokenSet_46
_tokenSet_47
public static final antlr.collections.impl.BitSet _tokenSet_47
_tokenSet_48
public static final antlr.collections.impl.BitSet _tokenSet_48
_tokenSet_49
public static final antlr.collections.impl.BitSet _tokenSet_49
_tokenSet_50
public static final antlr.collections.impl.BitSet _tokenSet_50
_tokenSet_51
public static final antlr.collections.impl.BitSet _tokenSet_51
_tokenSet_52
public static final antlr.collections.impl.BitSet _tokenSet_52
_tokenSet_53
public static final antlr.collections.impl.BitSet _tokenSet_53
_tokenSet_54
public static final antlr.collections.impl.BitSet _tokenSet_54
_tokenSet_55
public static final antlr.collections.impl.BitSet _tokenSet_55
_tokenSet_56
public static final antlr.collections.impl.BitSet _tokenSet_56
_tokenSet_57
public static final antlr.collections.impl.BitSet _tokenSet_57
_tokenSet_58
public static final antlr.collections.impl.BitSet _tokenSet_58
_tokenSet_59
public static final antlr.collections.impl.BitSet _tokenSet_59
_tokenSet_60
public static final antlr.collections.impl.BitSet _tokenSet_60
_tokenSet_61
public static final antlr.collections.impl.BitSet _tokenSet_61
_tokenSet_62
public static final antlr.collections.impl.BitSet _tokenSet_62
_tokenSet_63
public static final antlr.collections.impl.BitSet _tokenSet_63
_tokenSet_64
public static final antlr.collections.impl.BitSet _tokenSet_64
_tokenSet_65
public static final antlr.collections.impl.BitSet _tokenSet_65
_tokenSet_66
public static final antlr.collections.impl.BitSet _tokenSet_66
_tokenSet_67
public static final antlr.collections.impl.BitSet _tokenSet_67
_tokenSet_68
public static final antlr.collections.impl.BitSet _tokenSet_68
_tokenSet_69
public static final antlr.collections.impl.BitSet _tokenSet_69
_tokenSet_70
public static final antlr.collections.impl.BitSet _tokenSet_70
_tokenSet_71
public static final antlr.collections.impl.BitSet _tokenSet_71
_tokenSet_72
public static final antlr.collections.impl.BitSet _tokenSet_72
_tokenSet_73
public static final antlr.collections.impl.BitSet _tokenSet_73
_tokenSet_74
public static final antlr.collections.impl.BitSet _tokenSet_74
_tokenSet_75
public static final antlr.collections.impl.BitSet _tokenSet_75
_tokenSet_76
public static final antlr.collections.impl.BitSet _tokenSet_76
_tokenSet_77
public static final antlr.collections.impl.BitSet _tokenSet_77
_tokenSet_78
public static final antlr.collections.impl.BitSet _tokenSet_78
_tokenSet_79
public static final antlr.collections.impl.BitSet _tokenSet_79
_tokenSet_80
public static final antlr.collections.impl.BitSet _tokenSet_80
_tokenSet_81
public static final antlr.collections.impl.BitSet _tokenSet_81
_tokenSet_82
public static final antlr.collections.impl.BitSet _tokenSet_82
_tokenSet_83
public static final antlr.collections.impl.BitSet _tokenSet_83
_tokenSet_84
public static final antlr.collections.impl.BitSet _tokenSet_84
_tokenSet_85
public static final antlr.collections.impl.BitSet _tokenSet_85
_tokenSet_86
public static final antlr.collections.impl.BitSet _tokenSet_86
_tokenSet_87
public static final antlr.collections.impl.BitSet _tokenSet_87
_tokenSet_88
public static final antlr.collections.impl.BitSet _tokenSet_88
_tokenSet_89
public static final antlr.collections.impl.BitSet _tokenSet_89
_tokenSet_90
public static final antlr.collections.impl.BitSet _tokenSet_90
_tokenSet_91
public static final antlr.collections.impl.BitSet _tokenSet_91
_tokenSet_92
public static final antlr.collections.impl.BitSet _tokenSet_92
_tokenSet_93
public static final antlr.collections.impl.BitSet _tokenSet_93
_tokenSet_94
public static final antlr.collections.impl.BitSet _tokenSet_94
_tokenSet_95
public static final antlr.collections.impl.BitSet _tokenSet_95
_tokenSet_96
public static final antlr.collections.impl.BitSet _tokenSet_96
_tokenSet_97
public static final antlr.collections.impl.BitSet _tokenSet_97
_tokenSet_98
public static final antlr.collections.impl.BitSet _tokenSet_98
ModestParser
protected ModestParser(antlr.TokenBuffer tokenBuf,
int k)
ModestParser
public ModestParser(antlr.TokenBuffer tokenBuf)
ModestParser
protected ModestParser(antlr.TokenStream lexer,
int k)
ModestParser
public ModestParser(antlr.TokenStream lexer)
ModestParser
public ModestParser(antlr.ParserSharedInputState state)
main
public static void main(java.lang.String[] args)
doFile
public static void doFile(java.io.File f)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseFile
public static void parseFile(java.io.InputStream s)
throws java.lang.Exception
- Throws:
java.lang.Exception
setActualDocumentOffset
public void setActualDocumentOffset(int offset)
reportError
public void reportError(antlr.RecognitionException ex)
- Overrides:
reportError
in class antlr.Parser
getBreakLine
public int getBreakLine()
simulation
public final void simulation()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
defaultsSection
public final void defaultsSection()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Rule to take care of defaults section
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
declaration
public final void declaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sequentialProcess
public final void sequentialProcess()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
actionDeclaration
public final void actionDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
variableDeclaration
public final void variableDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
exceptionDeclaration
public final void exceptionDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
structDeclaration
public final void structDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
processDeclaration
public final void processDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
idList
public final void idList()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
modifier
public final void modifier()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
qType
public final void qType()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
arrayDeclaration
public final void arrayDeclaration()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
expression
public final void expression()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
arguments
public final void arguments()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
body
public final void body()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
type
public final void type()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
orExpr
public final void orExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
andExpr
public final void andExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
bitOrExpr
public final void bitOrExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
bitExclOrExpr
public final void bitExclOrExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
bitAndExpr
public final void bitAndExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
equalityExpr
public final void equalityExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
relExpr
public final void relExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
shiftExpr
public final void shiftExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
additiveExpr
public final void additiveExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
multExpr
public final void multExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
unaryExpr
public final void unaryExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
baseExpr
public final void baseExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
set
public final void set()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
range
public final void range()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
setElement
public final void setElement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
qID
public final void qID()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
tryBlock
public final void tryBlock()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
guardedProcess
public final void guardedProcess()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
localProcess
public final void localProcess()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
altStatement
public final void altStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
alternative
public final void alternative()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
loopStatement
public final void loopStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
parallelComposition
public final void parallelComposition()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
labelModification
public final void labelModification()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
label
public final void label()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
labelsByLabels
public final void labelsByLabels()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
assignement
public final void assignement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
assiOp
public final void assiOp()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
paramObject
public final void paramObject()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
params
public final void params()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
performAction
public final void performAction()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
paltStatement
public final void paltStatement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
assiBlock
public final void assiBlock()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
pAlternative
public final void pAlternative()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
weight
public final void weight()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()