modesteditor.core.antlrparser
Class ModestOutlineParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by modesteditor.core.antlrparser.ModestParser
              extended by modesteditor.core.antlrparser.ModestOutlineParser
All Implemented Interfaces:
ModestParserTokenTypes

public class ModestOutlineParser
extends ModestParser

The parser that will be used for the outline.


Field Summary
 
Fields inherited from class modesteditor.core.antlrparser.ModestParser
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_10, _tokenSet_11, _tokenSet_12, _tokenSet_13, _tokenSet_14, _tokenSet_15, _tokenSet_16, _tokenSet_17, _tokenSet_18, _tokenSet_19, _tokenSet_2, _tokenSet_20, _tokenSet_21, _tokenSet_22, _tokenSet_23, _tokenSet_24, _tokenSet_25, _tokenSet_26, _tokenSet_27, _tokenSet_28, _tokenSet_29, _tokenSet_3, _tokenSet_30, _tokenSet_31, _tokenSet_32, _tokenSet_33, _tokenSet_34, _tokenSet_35, _tokenSet_36, _tokenSet_37, _tokenSet_38, _tokenSet_39, _tokenSet_4, _tokenSet_40, _tokenSet_41, _tokenSet_42, _tokenSet_43, _tokenSet_44, _tokenSet_45, _tokenSet_46, _tokenSet_47, _tokenSet_48, _tokenSet_49, _tokenSet_5, _tokenSet_50, _tokenSet_51, _tokenSet_52, _tokenSet_53, _tokenSet_54, _tokenSet_55, _tokenSet_56, _tokenSet_57, _tokenSet_58, _tokenSet_59, _tokenSet_6, _tokenSet_60, _tokenSet_61, _tokenSet_62, _tokenSet_63, _tokenSet_64, _tokenSet_65, _tokenSet_66, _tokenSet_67, _tokenSet_68, _tokenSet_69, _tokenSet_7, _tokenSet_70, _tokenSet_71, _tokenSet_72, _tokenSet_73, _tokenSet_74, _tokenSet_75, _tokenSet_76, _tokenSet_77, _tokenSet_78, _tokenSet_79, _tokenSet_8, _tokenSet_80, _tokenSet_81, _tokenSet_82, _tokenSet_83, _tokenSet_84, _tokenSet_85, _tokenSet_86, _tokenSet_87, _tokenSet_88, _tokenSet_89, _tokenSet_9, _tokenSet_90, _tokenSet_91, _tokenSet_92, _tokenSet_93, _tokenSet_94, _tokenSet_95, _tokenSet_96, _tokenSet_97, _tokenSet_98, problems
 
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
 
Constructor Summary
ModestOutlineParser(ModestLexer lexer)
           
ModestOutlineParser(java.io.Reader in)
           
 
Method Summary
 antlr.collections.AST createAST()
          Method is called to build the AST.
 
Methods inherited from class modesteditor.core.antlrparser.ModestParser
actionDeclaration, additiveExpr, alternative, altStatement, andExpr, arguments, arrayDeclaration, assiBlock, assignement, assiOp, baseExpr, bitAndExpr, bitExclOrExpr, bitOrExpr, body, buildTokenTypeASTClassMap, declaration, defaultsSection, doFile, equalityExpr, exceptionDeclaration, expression, getBreakLine, guardedProcess, idList, label, labelModification, labelsByLabels, localProcess, loopStatement, main, modifier, multExpr, orExpr, pAlternative, paltStatement, parallelComposition, paramObject, params, parseFile, performAction, processDeclaration, qID, qType, range, relExpr, reportError, sequentialProcess, set, setActualDocumentOffset, setElement, shiftExpr, simulation, structDeclaration, tryBlock, type, unaryExpr, variableDeclaration, weight
 
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
 

Constructor Detail

ModestOutlineParser

public ModestOutlineParser(ModestLexer lexer)

ModestOutlineParser

public ModestOutlineParser(java.io.Reader in)
Method Detail

createAST

public antlr.collections.AST createAST()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
Method is called to build the AST. In order to have the possibility to work with the offset informations, the AST node class to use is set to ASTWithOffsetInfos.

Returns:
the AST from the given document.
Throws:
antlr.RecognitionException
antlr.TokenStreamException