SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
2.
Interacción Léxico-Sintáctico Analizador Léxico Analizador sintáctico Tabla de Símbolos Componente Léxico (Token) GetNextToken() Programa Fuente
3.
Funciones <ul><li>Eliminar tabs, espacios, comentarios </li></ul><ul><ul><li>Gramática con comentarios </li></ul></ul><ul><li>Relacionar mensajes de error con programa fuente </li></ul><ul><li>Eficiencia del compilador </li></ul><ul><ul><li>Tareas de lectura </li></ul></ul><ul><li>Transportabilidad del compilador </li></ul>
4.
Componentes <ul><li>Componente léxico (token) </li></ul><ul><ul><li>Se le hace match </li></ul></ul><ul><li>Patrón: construcción </li></ul><ul><ul><li>Expresiones regulares </li></ul></ul><ul><li>Lexema: secuencia de caracteres </li></ul><ul><ul><li>Id (token) </li></ul></ul><ul><ul><li>Letra (Letra*|Número*) (patrón) </li></ul></ul><ul><ul><li>Contador (lexema) </li></ul></ul>
5.
Atributos <ul><li>Token para el analizador sintáctico </li></ul><ul><li>Lexema en traducción </li></ul><ul><ul><li>Reglas semánticas </li></ul></ul><ul><li>Contador </li></ul><ul><ul><li><Id,”Contador”> </li></ul></ul>
6.
Errores léxicos <ul><li>Símbolo no reconocido </li></ul><ul><ul><li>No pertenece al alfabeto </li></ul></ul><ul><li>Recuperación: </li></ul><ul><ul><li>Borrar un caracter extraño </li></ul></ul><ul><ul><li>Insertar un faltante </li></ul></ul><ul><ul><li>Reemplazar un incorrecto </li></ul></ul><ul><ul><li>Intercambiar dos adyacentes </li></ul></ul>
7.
Ejercicio <ul><li>3.3 a) y c) </li></ul><ul><li>3.7 </li></ul>
0 likes
Be the first to like this
Views
Total views
1,794
On SlideShare
0
From Embeds
0
Number of Embeds
66
You have now unlocked unlimited access to 20M+ documents!
Unlimited Reading
Learn faster and smarter from top experts
Unlimited Downloading
Download to take your learnings offline and on the go
You also get free access to Scribd!
Instant access to millions of ebooks, audiobooks, magazines, podcasts and more.
Read and listen offline with any device.
Free access to premium services like Tuneln, Mubi and more.