modesteditor.core.antlrparser
Class ModestParserNew

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by modesteditor.core.antlrparser.ModestParserNew
All Implemented Interfaces:
parserModestVocab_TokenTypes

public class ModestParserNew
extends antlr.LLkParser
implements parserModestVocab_TokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_10
           
static antlr.collections.impl.BitSet _tokenSet_11
           
static antlr.collections.impl.BitSet _tokenSet_12
           
static antlr.collections.impl.BitSet _tokenSet_13
           
static antlr.collections.impl.BitSet _tokenSet_14
           
static antlr.collections.impl.BitSet _tokenSet_15
           
static antlr.collections.impl.BitSet _tokenSet_16
           
static antlr.collections.impl.BitSet _tokenSet_17
           
static antlr.collections.impl.BitSet _tokenSet_18
           
static antlr.collections.impl.BitSet _tokenSet_19
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_20
           
static antlr.collections.impl.BitSet _tokenSet_21
           
static antlr.collections.impl.BitSet _tokenSet_22
           
static antlr.collections.impl.BitSet _tokenSet_23
           
static antlr.collections.impl.BitSet _tokenSet_24
           
static antlr.collections.impl.BitSet _tokenSet_25
           
static antlr.collections.impl.BitSet _tokenSet_26
           
static antlr.collections.impl.BitSet _tokenSet_27
           
static antlr.collections.impl.BitSet _tokenSet_28
           
static antlr.collections.impl.BitSet _tokenSet_29
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_30
           
static antlr.collections.impl.BitSet _tokenSet_31
           
static antlr.collections.impl.BitSet _tokenSet_32
           
static antlr.collections.impl.BitSet _tokenSet_33
           
static antlr.collections.impl.BitSet _tokenSet_34
           
static antlr.collections.impl.BitSet _tokenSet_35
           
static antlr.collections.impl.BitSet _tokenSet_36
           
static antlr.collections.impl.BitSet _tokenSet_37
           
static antlr.collections.impl.BitSet _tokenSet_38
           
static antlr.collections.impl.BitSet _tokenSet_39
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_40
           
static antlr.collections.impl.BitSet _tokenSet_41
           
static antlr.collections.impl.BitSet _tokenSet_42
           
static antlr.collections.impl.BitSet _tokenSet_43
           
static antlr.collections.impl.BitSet _tokenSet_44
           
static antlr.collections.impl.BitSet _tokenSet_45
           
static antlr.collections.impl.BitSet _tokenSet_46
           
static antlr.collections.impl.BitSet _tokenSet_47
           
static antlr.collections.impl.BitSet _tokenSet_48
           
static antlr.collections.impl.BitSet _tokenSet_49
           
static antlr.collections.impl.BitSet _tokenSet_5
           
static antlr.collections.impl.BitSet _tokenSet_50
           
static antlr.collections.impl.BitSet _tokenSet_51
           
static antlr.collections.impl.BitSet _tokenSet_52
           
static antlr.collections.impl.BitSet _tokenSet_53
           
static antlr.collections.impl.BitSet _tokenSet_54
           
static antlr.collections.impl.BitSet _tokenSet_6
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
static antlr.collections.impl.BitSet _tokenSet_9
           
protected  boolean defActionsPatient
           
protected  boolean defGuardsUrgent
           
protected  java.util.ArrayList<Symbol> excs
           
protected static int MOD_CONST
           
protected static int MOD_EXTERN
           
protected static int MOD_IMPATIENT
           
protected static int MOD_NONE
           
protected static int MOD_PATIENT
           
protected  int numErrors
           
protected  long numTryCatch
           
 java.util.ArrayList<org.eclipse.jface.text.IRegion> problems
           
protected  java.util.ArrayList<java.lang.String> processes
           
protected  int procLevel
           
protected  java.util.ArrayList<java.lang.String> types
           
protected  java.util.HashMap<java.lang.String,Symbol> unUsedVars
           
protected  java.util.ArrayList<Symbol> vars
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface modesteditor.core.antlrparser.parserModestVocab_TokenTypes
ALT, AMPERSAND, AND_OP, ASSIGN, ASSIGN_END, ASSIGN_START, AT, BAND_ASSIGN, BOR, BOR_ASSIGN, BREAK, BXOR_ASSIGN, BY, C_COMMENT, CATCH, CATCH_DEFINITION_AST, CLASS, COLON, COMMA, CPP_COMMENT, DCOLON, DEFAULTS, DIV, DIV_ASSIGN, DO, DOT, DOT_OR_DOTDOT, DOTDOT, ELSE, ENUM, EOF, EOR, EQ_OP, ERROR, ESCAPE, EXPONENT_PART, EXPORT, EXPOSE, EXTEND, FLOAT, FLOAT_SUFFIX, FORALL, FUNCTION_CALL_AST, FUNCTION_DEFINITION_AST, GE_OP, GT_OP, GUARD_AST, HASH, HASH_OR_LINENR, HIDE, IDENTIFIER, IDENTIFIER_AST, IF, IMPATIENT, IMPORT, INT, INTNUMERIC, LBRACE, LBRACKET, LCURL, LE_OP, LT_OP, MCONST, MEXTERN, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, MULT, MULT_ASSIGN, NE_OP, NOT_OP, NULL_TREE_LOOKAHEAD, NUMERIC, OR_OP, PACKAGE, PALT, PAR, PARAMETER_LIST_AST, PATIENT, PLUS, PLUS_ASSIGN, PREFIX, PRIORITY, PROCESS, PROCESS_DEFINITION_AST, PROCESS_INSTANTIATION_AST, QUESTION, RANGE, RBRACE, RBRACKET, RCURL, RELABEL, RETURN, REWRITE, SEMICOLON, SET, SHIFTL, SHIFTL_OR_ASGN, SHIFTR, SHIFTR_OR_ASGN, SL_ASSIGN, SR_ASSIGN, STOP, STRING, STRUCT, THROW, TRY, TYPE_AST, TYPE_CAST, TYPE_DEFINITION_AST, TYPEDEF, URGENT, VARIABLE_DECLARATION_AST, WEIGHT_AST, WHEN, WS
 
Constructor Summary
  ModestParserNew(antlr.ParserSharedInputState state)
           
  ModestParserNew(antlr.TokenBuffer tokenBuf)
           
protected ModestParserNew(antlr.TokenBuffer tokenBuf, int k)
           
  ModestParserNew(antlr.TokenStream lexer)
           
protected ModestParserNew(antlr.TokenStream lexer, int k)
           
 
Method Summary
 java.lang.String additive_expr()
           
 antlr.Token additive_op()
           
 boolean addType(java.lang.String s)
           
 void alt_stmnt()
          Alt statement
 void alternative()
           
 java.lang.String and_expr()
           
 void arguments()
          Parameter list for invocation of functions or instantiation of processes
 void assignment_block()
          Atomic assignment block used in palt statement
 antlr.Token assignment_op()
          Normal assignment
 void assignment(boolean need_palt)
          Assignment rule.
 void assignments()
           
 void astruct()
          Struct definition
 java.lang.String base_expr()
           
 java.lang.String bitand_expr()
           
 java.lang.String bitexclor_expr()
           
 java.lang.String bitor_expr()
           
protected  void buildTokenTypeASTClassMap()
           
 antlr.Token comp_op()
           
 void declarative_stmnt()
          Declarations of types/processes/functions/variables
 void defaults_section()
          Rule to take care of defaults section
 void description()
          Grammar rule for descriptions
static void doFile(java.io.File f)
           
 antlr.Token eq_op()
           
 java.lang.String equality_expr()
           
 java.lang.String expression()
           
 java.lang.String findType(java.lang.String s)
           
 int getErrorCount()
           
 java.util.ArrayList<java.lang.String> getProcesses()
           
 java.util.HashMap<java.lang.String,Symbol> getUnUsedVars()
           
 java.util.ArrayList<java.lang.String> getVars()
           
 void guarded_process()
          Guarded process
 void identifier_or_array_decl(java.lang.String sType, int modifiers, boolean inStruct)
          normal variable or array declaration
 void if_stmnt()
          If statement this is a static construct NOTE: probably not used anymore due to disabling of forall
 void label_modification()
          Labeling modifiers
 void labels_by_labels()
           
 void local_process()
          Local process work horse practically any statement.
 void loop_stmnt()
          Loop statement
static void main(java.lang.String[] args)
           
 int modifier()
          Modifiers used in variable declarations to specify externness, constness and (im)patience.
 java.lang.String multiplicative_expr()
           
 antlr.Token multiplicative_op()
           
 java.lang.String or_expr()
           
 void palt_alternative()
           
 void palt_stmnt()
           
 void parallel_composition()
          Parallel composition
 java.util.ArrayList<Symbol> param_definition(java.lang.String function)
          Parameter list for definition of functions/processes
 Symbol parameter(java.lang.String function, int cnt)
           
 java.lang.String parameterized_object()
          Function invocation or process instantiation
static void parseFile(java.io.InputStream s)
           
 void perform_action()
           
 void process_body()
          Process body used as process body and as function body.
 void process_definition()
          Process definition Define a process.
 java.lang.String qualified_identifier(boolean allow_single_id)
          Qualified identifier 'normal' identifier reference with optional namespace specification
 java.lang.String qualified_type()
          Qualified type type with optional namespace qualification
 java.lang.String range()
          specify a range [a_range_type] or [..
 java.lang.String relational_expr()
           
 void reportError(antlr.RecognitionException ex)
           
 void sequential_processes()
          sequential composition or action prefixing
 void set_element()
           
 void set()
          Set definition
 java.lang.String shift_expr()
           
 antlr.Token shift_op()
           
 java.lang.String simple_expression()
           
 void start()
          Start rule for grammar
 void try_block()
          Try .. throw .. catch ..
 void type_definition()
          Type definition define a new type - a set (mostly implemented) - a struct (mostly unimplemented) - a range (mostly unimplemented)
 java.lang.String unary_expr()
           
 void vardecl_assign(int modifiers, ModestAST id)
           
 void variable_declaration(boolean inStruct)
          Variable declarations define a variable for later use.
 void weight()
          Note: Alternative :: treated as :1:
 
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
 

Field Detail

numTryCatch

protected long numTryCatch

numErrors

protected int numErrors

procLevel

protected int procLevel

defActionsPatient

protected boolean defActionsPatient

defGuardsUrgent

protected boolean defGuardsUrgent

MOD_NONE

protected static final int MOD_NONE
See Also:
Constant Field Values

MOD_EXTERN

protected static final int MOD_EXTERN
See Also:
Constant Field Values

MOD_CONST

protected static final int MOD_CONST
See Also:
Constant Field Values

MOD_PATIENT

protected static final int MOD_PATIENT
See Also:
Constant Field Values

MOD_IMPATIENT

protected static final int MOD_IMPATIENT
See Also:
Constant Field Values

types

protected java.util.ArrayList<java.lang.String> types

vars

protected java.util.ArrayList<Symbol> vars

excs

protected java.util.ArrayList<Symbol> excs

processes

protected java.util.ArrayList<java.lang.String> processes

unUsedVars

protected java.util.HashMap<java.lang.String,Symbol> unUsedVars

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
Constructor Detail

ModestParserNew

protected ModestParserNew(antlr.TokenBuffer tokenBuf,
                          int k)

ModestParserNew

public ModestParserNew(antlr.TokenBuffer tokenBuf)

ModestParserNew

protected ModestParserNew(antlr.TokenStream lexer,
                          int k)

ModestParserNew

public ModestParserNew(antlr.TokenStream lexer)

ModestParserNew

public ModestParserNew(antlr.ParserSharedInputState state)
Method Detail

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

getUnUsedVars

public java.util.HashMap<java.lang.String,Symbol> getUnUsedVars()

getVars

public java.util.ArrayList<java.lang.String> getVars()

getProcesses

public java.util.ArrayList<java.lang.String> getProcesses()

getErrorCount

public int getErrorCount()

findType

public java.lang.String findType(java.lang.String s)

addType

public boolean addType(java.lang.String s)

reportError

public void reportError(antlr.RecognitionException ex)
Overrides:
reportError in class antlr.Parser

start

public final void start()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException
Start rule for grammar

Throws:
antlr.RecognitionException
antlr.TokenStreamException

defaults_section

public final void defaults_section()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Rule to take care of defaults section

Throws:
antlr.RecognitionException
antlr.TokenStreamException

description

public final void description()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Grammar rule for descriptions

Parameters:
proc - the process symbol the description belongs to.
Throws:
antlr.RecognitionException
antlr.TokenStreamException

declarative_stmnt

public final void declarative_stmnt()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Declarations of types/processes/functions/variables

Parameters:
assignments - ASTVector used to collect initializations of variables
Throws:
antlr.RecognitionException
antlr.TokenStreamException

sequential_processes

public final void sequential_processes()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
sequential composition or action prefixing

Throws:
antlr.RecognitionException
antlr.TokenStreamException

type_definition

public final void type_definition()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Type definition define a new type - a set (mostly implemented) - a struct (mostly unimplemented) - a range (mostly unimplemented)

Throws:
antlr.RecognitionException
antlr.TokenStreamException

process_definition

public final void process_definition()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
Process definition Define a process.

Throws:
antlr.RecognitionException
antlr.TokenStreamException

modifier

public final int modifier()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Modifiers used in variable declarations to specify externness, constness and (im)patience.

Throws:
antlr.RecognitionException
antlr.TokenStreamException

qualified_type

public final java.lang.String qualified_type()
                                      throws antlr.RecognitionException,
                                             antlr.TokenStreamException
Qualified type type with optional namespace qualification

Throws:
antlr.RecognitionException
antlr.TokenStreamException

variable_declaration

public final void variable_declaration(boolean inStruct)
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
Variable declarations define a variable for later use.

Throws:
antlr.RecognitionException
antlr.TokenStreamException

set

public final void set()
               throws antlr.RecognitionException,
                      antlr.TokenStreamException
Set definition

Throws:
antlr.RecognitionException
antlr.TokenStreamException

range

public final java.lang.String range()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
specify a range [a_range_type] or [..]

Throws:
antlr.RecognitionException
antlr.TokenStreamException

astruct

public final void astruct()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Struct definition

Throws:
antlr.RecognitionException
antlr.TokenStreamException

vardecl_assign

public final void vardecl_assign(int modifiers,
                                 ModestAST id)
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

expression

public final java.lang.String expression()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

identifier_or_array_decl

public final void identifier_or_array_decl(java.lang.String sType,
                                           int modifiers,
                                           boolean inStruct)
                                    throws antlr.RecognitionException,
                                           antlr.TokenStreamException
normal variable or array declaration

Throws:
antlr.RecognitionException
antlr.TokenStreamException

local_process

public final void local_process()
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Local process work horse practically any statement.

Throws:
antlr.RecognitionException
antlr.TokenStreamException

try_block

public final void try_block()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Try .. throw .. catch .. exception handling

Throws:
antlr.RecognitionException
antlr.TokenStreamException

if_stmnt

public final void if_stmnt()
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
If statement this is a static construct NOTE: probably not used anymore due to disabling of forall

Throws:
antlr.RecognitionException
antlr.TokenStreamException

alt_stmnt

public final void alt_stmnt()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Alt statement

Throws:
antlr.RecognitionException
antlr.TokenStreamException

loop_stmnt

public final void loop_stmnt()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Loop statement

Throws:
antlr.RecognitionException
antlr.TokenStreamException

parallel_composition

public final void parallel_composition()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
Parallel composition

Throws:
antlr.RecognitionException
antlr.TokenStreamException

label_modification

public final void label_modification()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
Labeling modifiers

Throws:
antlr.RecognitionException
antlr.TokenStreamException

guarded_process

public final void guarded_process()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Guarded process

Throws:
antlr.RecognitionException
antlr.TokenStreamException

process_body

public final void process_body()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Process body used as process body and as function body.

Throws:
antlr.RecognitionException
antlr.TokenStreamException

assignment

public final void assignment(boolean need_palt)
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Assignment rule. The parameter controls wether a 'tau PALT AST' needs to be inserted in front of the assignment

Throws:
antlr.RecognitionException
antlr.TokenStreamException

parameterized_object

public final java.lang.String parameterized_object()
                                            throws antlr.RecognitionException,
                                                   antlr.TokenStreamException
Function invocation or process instantiation

Throws:
antlr.RecognitionException
antlr.TokenStreamException

perform_action

public final void perform_action()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

palt_stmnt

public final void palt_stmnt()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

qualified_identifier

public final java.lang.String qualified_identifier(boolean allow_single_id)
                                            throws antlr.RecognitionException,
                                                   antlr.TokenStreamException
Qualified identifier 'normal' identifier reference with optional namespace specification

Returns:
a Symbol_type * for the qualified id. or throw semantic exception if id not found. this rule is only used to referenced things that should be defined on beforehand.
Throws:
antlr.RecognitionException
antlr.TokenStreamException

assignment_block

public final void assignment_block()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Atomic assignment block used in palt statement

Throws:
antlr.RecognitionException
antlr.TokenStreamException

simple_expression

public final java.lang.String simple_expression()
                                         throws antlr.RecognitionException,
                                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

labels_by_labels

public final void labels_by_labels()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

param_definition

public final java.util.ArrayList<Symbol> param_definition(java.lang.String function)
                                                   throws antlr.RecognitionException,
                                                          antlr.TokenStreamException
Parameter list for definition of functions/processes

Throws:
antlr.RecognitionException
antlr.TokenStreamException

alternative

public final void alternative()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

assignment_op

public final antlr.Token assignment_op()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
Normal assignment

Throws:
antlr.RecognitionException
antlr.TokenStreamException

assignments

public final void assignments()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

weight

public final void weight()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Note: Alternative :: treated as :1:

Throws:
antlr.RecognitionException
antlr.TokenStreamException

palt_alternative

public final void palt_alternative()
                            throws antlr.RecognitionException,
                                   antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

arguments

public final void arguments()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException
Parameter list for invocation of functions or instantiation of processes

Throws:
antlr.RecognitionException
antlr.TokenStreamException

parameter

public final Symbol parameter(java.lang.String function,
                              int cnt)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

additive_expr

public final java.lang.String additive_expr()
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

or_expr

public final java.lang.String or_expr()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

and_expr

public final java.lang.String and_expr()
                                throws antlr.RecognitionException,
                                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

bitor_expr

public final java.lang.String bitor_expr()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

bitexclor_expr

public final java.lang.String bitexclor_expr()
                                      throws antlr.RecognitionException,
                                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

bitand_expr

public final java.lang.String bitand_expr()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

equality_expr

public final java.lang.String equality_expr()
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

eq_op

public final antlr.Token eq_op()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

relational_expr

public final java.lang.String relational_expr()
                                       throws antlr.RecognitionException,
                                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

comp_op

public final antlr.Token comp_op()
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

shift_expr

public final java.lang.String shift_expr()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

shift_op

public final antlr.Token shift_op()
                           throws antlr.RecognitionException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

additive_op

public final antlr.Token additive_op()
                              throws antlr.RecognitionException,
                                     antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

multiplicative_expr

public final java.lang.String multiplicative_expr()
                                           throws antlr.RecognitionException,
                                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

multiplicative_op

public final antlr.Token multiplicative_op()
                                    throws antlr.RecognitionException,
                                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

unary_expr

public final java.lang.String unary_expr()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

base_expr

public final java.lang.String base_expr()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

set_element

public final void set_element()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

buildTokenTypeASTClassMap

protected void buildTokenTypeASTClassMap()