11.07.2015 Views

Compiladores: PASCALjr - WWW2 - Udesc

Compiladores: PASCALjr - WWW2 - Udesc

Compiladores: PASCALjr - WWW2 - Udesc

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ListaIDConst’ 1 → Virg Identificador Atrib Valor ListaIDConst’ 2{ ListaIDConst’ 2 .T ipo = ListaIDConst 1 .T ipo;InsereT S(CONST, Identificador.Lexema, ListaIDConst 1 .T ipo,EnderecoLivre + +, Valor.V alor) }ListaIDConst’ → ε { Nenhuma Ação Semântica }Valor → OpAritSubt Numeros { Valor.V alor = −Numeros.V alor }Valor → Numeros { Valor.V alor = Numeros.V alor }Valor → ConstCaracter { Valor.V alor = ConstCaracter.Lexema }Valor → ConstString { Valor.V alor = ConstString.Lexema }Valor → prTrue { Valor.V alor = true }Valor → prFalse { Valor.V alor = false }Numeros → NumeroInteiro { Numeros.V alor = NumeroInteiro.Lexema }Numeros → NumeroReal { Numeros.V alor = NumeroReal.Lexema }BlocoCom → AbreChaves ListaCom FechaChaves{ Nenhuma Ação Semântica }ListaCom → ComSimp ListaCom’ { Nenhuma Ação Semântica }ListaCom → ε { Nenhuma Ação Semântica }ListaCom’ → PtVirg ComSimp ListaCom’ { Nenhuma Ação Semântica }< ListaCom’ >→ ε { Nenhuma Ação Semântica }< ComSimp >→< Atrib > { Nenhuma Ação Semântica }< ComSimp >→< RepetPre > { Nenhuma Ação Semântica }< ComSimp >→< RepetPos >{ Nenhuma Ação Semântica }< ComSimp >→< RepetCont >{ Nenhuma Ação Semântica }< ComSimp >→< Entrada >{ Nenhuma Ação Semântica }< ComSimp >→< Saida >{ Nenhuma Ação Semântica }< ComSimp >→< Condic >{ Nenhuma Ação Semântica }< ComSimp >→< BlocoCom >{ Nenhuma Ação Semântica }< ComSimp >→ ε{ Nenhuma Ação Semântica }< Atrib >→ Identificador < Atrib’ >{Entrada = BuscaT S(Identificador);if(!Entrada)ERRO SEM 1 else if(Entrada.Natureza! = V AR)ERRO SEM 2;< Atrib’ > .T ipo = Entrada.T ipo;}52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!