11.07.2015 Views

tesis_uam/Guia para hacer compiladores _UAM7403.pdf - cedip

tesis_uam/Guia para hacer compiladores _UAM7403.pdf - cedip

tesis_uam/Guia para hacer compiladores _UAM7403.pdf - cedip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Veamos ahora la siguiente gramática, sus autómatas y suimplementaciónS : DECLDECL --> var id TIPODECL --> const idTIPO --> enteroTIPO --> caracterde acuerdo a la gramática tenemos los siguientes autómatasf \?odonde la implementación de los autómatas es la siguiente:PROCEDIMIENTO DECLComienzatoken c-- LEXSI token = cod-var ENTONCESComienzatoken c-- LEXSI token c> cod-id ENTONCESERROROTROComienzatoken c-- LEXTIPOTerminaTerminaOTROSI token = cod-const ENTONCESComienzatoken c-- LEXSI token c> cod-id ENTONCESERRORTerminaOTROERRORTerminaOTRO token c-- LEX

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

Saved successfully!

Ooh no, something went wrong!