jeops.parser
Class Parser
java.lang.Object
|
+--jeops.parser.Parser
- public class Parser
- extends java.lang.Object
- implements ParserConstants
Fields inherited from interface jeops.parser.ParserConstants |
ACT,
AND,
ATRIBUICAO,
CHARACTER_LITERAL,
CONST,
DEC,
DECIMAL_LITERAL,
DEFAULT,
DELETE,
DIF,
DIGIT,
DIVIDE,
EOF,
EQUAL,
FALSE,
FLOAT,
FORMAL_COMMENT,
GE,
GREATER,
IDENTIFIER,
IMPORT,
IN_FORMAL_COMMENT,
IN_MULTI_LINE_COMMENT,
IN_SINGLE_LINE_COMMENT,
INSERT,
INTEGER,
INTEGER_LITERAL,
LE,
LESS,
LETTER,
LOCAL,
LOCAL_DEC,
MINUS,
MODIFIED,
MULTI_LINE_COMMENT,
MULTIPLY,
NEW,
NOT,
NULL,
OR,
PACKAGE,
PLUS,
PRE,
RETURN,
RULE,
SINGLE_LINE_COMMENT,
STRING,
tokenImage,
TRUE |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
token_source
public ParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
Parser
public Parser(java.io.InputStream stream)
Parser
public Parser(java.io.Reader stream)
Parser
public Parser(java.lang.String arq,
RuleBase br)
throws ParseException,
java.io.FileNotFoundException
Parser
public Parser(ParserTokenManager tm)
ActionList
public final void ActionList()
throws ParseException
Arit_Expression
public final JavaExpr Arit_Expression()
throws ParseException
AritOperators
public final java.lang.String AritOperators()
throws ParseException
Bool_Expression
public final JavaExpr Bool_Expression()
throws ParseException
BoolBOperators
public final java.lang.String BoolBOperators()
throws ParseException
Boolean
public final java.lang.String Boolean()
throws ParseException
BoolUOperators
public final void BoolUOperators()
throws ParseException
CompilationUnit
public final void CompilationUnit()
throws ParseException
- A GRAMATICA COMECA AQUI *
disable_tracing
public final void disable_tracing()
enable_tracing
public final void enable_tracing()
Expression
public final JavaExpr Expression()
throws ParseException
generateParseException
public final ParseException generateParseException()
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
ImportDeclaration
public final void ImportDeclaration()
throws ParseException
LocalDeclarations
public final void LocalDeclarations()
throws ParseException
- Lista de declaracoes locais com sua respectivas acoes.
main
public static void main(java.lang.String[] args)
Name
public final java.lang.String Name()
throws ParseException
ParametersList
public final JavaExpr[] ParametersList()
throws ParseException
Preconditions
public final void Preconditions()
throws ParseException
- Lista das pré-condições.
PreList
public final JavaExpr PreList()
throws ParseException
Primary_Expression
public final JavaExpr Primary_Expression()
throws ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(ParserTokenManager tm)
RelOperators
public final java.lang.String RelOperators()
throws ParseException
RuleBody
public final void RuleBody()
throws ParseException
RuleDeclaration
public final void RuleDeclaration()
throws ParseException
TypeList
public final Declaracoes TypeList()
throws ParseException
- Retorna uma Hashtable contendo a lista de declaracoes.