plp.imperative1.parser
Class Imp1Parser

java.lang.Object
  extended by plp.imperative1.parser.Imp1Parser
All Implemented Interfaces:
Imp1ParserConstants

public class Imp1Parser
extends java.lang.Object
implements Imp1ParserConstants


Field Summary
static Token jj_nt
           
static boolean lookingAhead
           
static Token token
           
static Imp1ParserTokenManager token_source
           
 
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
 
Constructor Summary
Imp1Parser(Imp1ParserTokenManager tm)
           
Imp1Parser(java.io.InputStream stream)
           
Imp1Parser(java.io.InputStream stream, java.lang.String encoding)
           
Imp1Parser(java.io.Reader stream)
           
 
Method Summary
static ListaValor criaListaValor(java.util.List valores)
           
static void disable_tracing()
           
static void enable_tracing()
           
static ParseException generateParseException()
           
static Token getNextToken()
           
static Token getToken(int index)
           
static Programa Input()
           
static void main(java.lang.String[] args)
           
static Atribuicao PAtribuicao()
           
static Comando PComando()
           
static ComandoDeclaracao PComandoDeclaracao()
           
static Comando PComandoSimples()
           
static Declaracao PDeclaracao()
           
static DeclaracaoComposta PDeclaracaoComposta()
           
static Declaracao PDeclaracaoSimples()
           
static DeclaracaoVariavel PDeclaracaoVariavel()
           
static ExpAnd PExpAnd()
           
static Expressao PExpBinaria()
           
static ExpConcat PExpConcat()
           
static ExpEquals PExpEquals()
           
static Expressao PExpLength()
           
static Expressao PExpMenos()
           
static Expressao PExpNot()
           
static ExpOr PExpOr()
           
static Expressao PExpPrimaria()
           
static Expressao PExpressao()
           
static ExpSoma PExpSoma()
           
static ExpSub PExpSub()
           
static Expressao PExpUnaria()
           
static Id PId()
           
static IfThenElse PIfThenElse()
           
static IO PIO()
           
static Programa PPrograma()
           
static Read PRead()
           
static SequenciaComando PSequenciaComando()
           
static Skip PSkip()
           
static Valor PValor()
           
static Valor PValorBooleano()
           
static Valor PValorInteiro()
           
static Valor PValorString()
           
static While PWhile()
           
static Write PWrite()
           
 void ReInit(Imp1ParserTokenManager tm)
           
static void ReInit(java.io.InputStream stream)
           
static void ReInit(java.io.InputStream stream, java.lang.String encoding)
           
static void ReInit(java.io.Reader stream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public static Imp1ParserTokenManager token_source

token

public static Token token

jj_nt

public static Token jj_nt

lookingAhead

public static boolean lookingAhead
Constructor Detail

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)
Method Detail

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()