plp.imperative1.parser
Class Imp1Parser
java.lang.Object
plp.imperative1.parser.Imp1Parser
- All Implemented Interfaces:
- Imp1ParserConstants
public class Imp1Parser
- extends java.lang.Object
- implements Imp1ParserConstants
Fields inherited from interface plp.imperative1.parser.Imp1ParserConstants |
AND, ASSIGN, ATTRIB, BANG, BIT_AND, BIT_OR, BOOLEAN, CALL, COLON, COMAND_SKIP, COMMA, CONCAT, DECIMAL_LITERAL, DEFAULT, DIGIT, DO, DOT, ELSE, EOF, EQ, FALSE, FORMAL_COMMENT, GE, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, INT, INTEGER_LITERAL, LBRACE, LBRACKET, LE, LENGTH, LETTER, LPAREN, LT, MINUS, MULTI_LINE_COMMENT, NE, NOT, OCTAL_LITERAL, OR, PLUS, PROC, RBRACE, RBRACKET, READ, REM, RPAREN, SC_AND, SC_OR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, STAR, STRING, STRING_LITERAL, THEN, TILDE, tokenImage, TRUE, VAR, WHILE, WRITE, XOR |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public static Imp1ParserTokenManager token_source
token
public static Token token
jj_nt
public static Token jj_nt
lookingAhead
public static boolean lookingAhead
Imp1Parser
public Imp1Parser(java.io.InputStream stream)
Imp1Parser
public Imp1Parser(java.io.InputStream stream,
java.lang.String encoding)
Imp1Parser
public Imp1Parser(java.io.Reader stream)
Imp1Parser
public Imp1Parser(Imp1ParserTokenManager tm)
main
public static void main(java.lang.String[] args)
criaListaValor
public static ListaValor criaListaValor(java.util.List valores)
Input
public static final Programa Input()
throws ParseException
- Throws:
ParseException
PPrograma
public static final Programa PPrograma()
throws ParseException
- Throws:
ParseException
PComando
public static final Comando PComando()
throws ParseException
- Throws:
ParseException
PSequenciaComando
public static final SequenciaComando PSequenciaComando()
throws ParseException
- Throws:
ParseException
PIO
public static final IO PIO()
throws ParseException
- Throws:
ParseException
PRead
public static final Read PRead()
throws ParseException
- Throws:
ParseException
PWrite
public static final Write PWrite()
throws ParseException
- Throws:
ParseException
PIfThenElse
public static final IfThenElse PIfThenElse()
throws ParseException
- Throws:
ParseException
PWhile
public static final While PWhile()
throws ParseException
- Throws:
ParseException
PSkip
public static final Skip PSkip()
throws ParseException
- Throws:
ParseException
PAtribuicao
public static final Atribuicao PAtribuicao()
throws ParseException
- Throws:
ParseException
PId
public static final Id PId()
throws ParseException
- Throws:
ParseException
PValorInteiro
public static final Valor PValorInteiro()
throws ParseException
- Throws:
ParseException
PValorBooleano
public static final Valor PValorBooleano()
throws ParseException
- Throws:
ParseException
PValorString
public static final Valor PValorString()
throws ParseException
- Throws:
ParseException
PValor
public static final Valor PValor()
throws ParseException
- Throws:
ParseException
PExpMenos
public static final Expressao PExpMenos()
throws ParseException
- Throws:
ParseException
PExpNot
public static final Expressao PExpNot()
throws ParseException
- Throws:
ParseException
PExpLength
public static final Expressao PExpLength()
throws ParseException
- Throws:
ParseException
PExpPrimaria
public static final Expressao PExpPrimaria()
throws ParseException
- Throws:
ParseException
PExpUnaria
public static final Expressao PExpUnaria()
throws ParseException
- Throws:
ParseException
PExpBinaria
public static final Expressao PExpBinaria()
throws ParseException
- Throws:
ParseException
PExpSoma
public static final ExpSoma PExpSoma()
throws ParseException
- Throws:
ParseException
PExpSub
public static final ExpSub PExpSub()
throws ParseException
- Throws:
ParseException
PExpAnd
public static final ExpAnd PExpAnd()
throws ParseException
- Throws:
ParseException
PExpOr
public static final ExpOr PExpOr()
throws ParseException
- Throws:
ParseException
PExpEquals
public static final ExpEquals PExpEquals()
throws ParseException
- Throws:
ParseException
PExpConcat
public static final ExpConcat PExpConcat()
throws ParseException
- Throws:
ParseException
PExpressao
public static final Expressao PExpressao()
throws ParseException
- Throws:
ParseException
PComandoSimples
public static final Comando PComandoSimples()
throws ParseException
- Throws:
ParseException
PComandoDeclaracao
public static final ComandoDeclaracao PComandoDeclaracao()
throws ParseException
- Throws:
ParseException
PDeclaracao
public static final Declaracao PDeclaracao()
throws ParseException
- Throws:
ParseException
PDeclaracaoSimples
public static final Declaracao PDeclaracaoSimples()
throws ParseException
- Throws:
ParseException
PDeclaracaoComposta
public static final DeclaracaoComposta PDeclaracaoComposta()
throws ParseException
- Throws:
ParseException
PDeclaracaoVariavel
public static final DeclaracaoVariavel PDeclaracaoVariavel()
throws ParseException
- Throws:
ParseException
ReInit
public static void ReInit(java.io.InputStream stream)
ReInit
public static void ReInit(java.io.InputStream stream,
java.lang.String encoding)
ReInit
public static void ReInit(java.io.Reader stream)
ReInit
public void ReInit(Imp1ParserTokenManager tm)
getNextToken
public static final Token getNextToken()
getToken
public static final Token getToken(int index)
generateParseException
public static ParseException generateParseException()
enable_tracing
public static final void enable_tracing()
disable_tracing
public static final void disable_tracing()