plp.imperative2.parser
Class Imp2Parser

java.lang.Object
  extended by plp.imperative2.parser.Imp2Parser
All Implemented Interfaces:
Imp2ParserConstants

public class Imp2Parser
extends java.lang.Object
implements Imp2ParserConstants


Field Summary
static Token jj_nt
           
static boolean lookingAhead
           
static Token token
           
static Imp2ParserTokenManager token_source
           
 
Fields inherited from interface plp.imperative2.parser.Imp2ParserConstants
AND, ASSIGN, ATTRIB, BANG, BIT_AND, BIT_OR, BOOLEAN, CALL, COLON, COMMA, COMMAND_SKIP, 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, NOTIFY, OCTAL_LITERAL, OR, PAR, PLUS, PROC, RBRACE, RBRACKET, READ, REM, RPAREN, SC_AND, SC_OR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLEEP, STAR, STRING, STRING_LITERAL, SYNCH, THEN, TILDE, tokenImage, TRUE, VAR, WAIT, WHILE, WRITE, XOR
 
Constructor Summary
Imp2Parser(Imp2ParserTokenManager tm)
           
Imp2Parser(java.io.InputStream stream)
           
Imp2Parser(java.io.InputStream stream, java.lang.String encoding)
           
Imp2Parser(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 ChamadaProcedimento PChamadaProcedimento()
           
static Comando PComando()
           
static ComandoDeclaracao PComandoDeclaracao()
           
static Comando PComandoSimples()
           
static Declaracao PDeclaracao()
           
static DeclaracaoComposta PDeclaracaoComposta()
           
static DeclaracaoProcedimento PDeclaracaoProcedimento()
           
static DeclaracaoComposta PDeclaracaoProcedimentoComposta()
           
static DeclaracaoVariavel PDeclaracaoVariavel()
           
static DefProcedimento PDefProcedimento()
           
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 ListaDeclaracaoParametro PListaDeclaracaoParametro()
           
static ListaExpressao PListaExpressao()
           
static Notify PNotify()
           
static Paralelismo PParalelismo()
           
static Programa PPrograma()
           
static Read PRead()
           
static SequenciaComando PSequenciaComando()
           
static Skip PSkip()
           
static Sleep PSleep()
           
static Synch PSynch()
           
static Tipo PTipo()
           
static Valor PValor()
           
static Valor PValorBooleano()
           
static Valor PValorInteiro()
           
static Valor PValorString()
           
static Wait PWait()
           
static While PWhile()
           
static Write PWrite()
           
 void ReInit(Imp2ParserTokenManager 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 Imp2ParserTokenManager token_source

token

public static Token token

jj_nt

public static Token jj_nt

lookingAhead

public static boolean lookingAhead
Constructor Detail

Imp2Parser

public Imp2Parser(java.io.InputStream stream)

Imp2Parser

public Imp2Parser(java.io.InputStream stream,
                  java.lang.String encoding)

Imp2Parser

public Imp2Parser(java.io.Reader stream)

Imp2Parser

public Imp2Parser(Imp2ParserTokenManager 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

PParalelismo

public static final Paralelismo PParalelismo()
                                      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

PNotify

public static final Notify PNotify()
                            throws ParseException
Throws:
ParseException

PWait

public static final Wait PWait()
                        throws ParseException
Throws:
ParseException

PWrite

public static final Write PWrite()
                          throws ParseException
Throws:
ParseException

PSleep

public static final Sleep PSleep()
                          throws ParseException
Throws:
ParseException

PIfThenElse

public static final IfThenElse PIfThenElse()
                                    throws ParseException
Throws:
ParseException

PWhile

public static final While PWhile()
                          throws ParseException
Throws:
ParseException

PSynch

public static final Synch PSynch()
                          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

PChamadaProcedimento

public static final ChamadaProcedimento PChamadaProcedimento()
                                                      throws ParseException
Throws:
ParseException

PComandoDeclaracao

public static final ComandoDeclaracao PComandoDeclaracao()
                                                  throws ParseException
Throws:
ParseException

PDeclaracao

public static final Declaracao PDeclaracao()
                                    throws ParseException
Throws:
ParseException

PDeclaracaoComposta

public static final DeclaracaoComposta PDeclaracaoComposta()
                                                    throws ParseException
Throws:
ParseException

PDeclaracaoProcedimentoComposta

public static final DeclaracaoComposta PDeclaracaoProcedimentoComposta()
                                                                throws ParseException
Throws:
ParseException

PDeclaracaoProcedimento

public static final DeclaracaoProcedimento PDeclaracaoProcedimento()
                                                            throws ParseException
Throws:
ParseException

PDefProcedimento

public static final DefProcedimento PDefProcedimento()
                                              throws ParseException
Throws:
ParseException

PTipo

public static final Tipo PTipo()
                        throws ParseException
Throws:
ParseException

PListaDeclaracaoParametro

public static final ListaDeclaracaoParametro PListaDeclaracaoParametro()
                                                                throws ParseException
Throws:
ParseException

PListaExpressao

public static final ListaExpressao PListaExpressao()
                                            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(Imp2ParserTokenManager 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()