1 / 22

Instituto Tecnológico de Minatitlán

Instituto Tecnológico de Minatitlán. Realización de un Interprete. Aspectos Generales del Proyecto Final. Programación de Sistemas II. INTRODUCCION.

yamin
Download Presentation

Instituto Tecnológico de Minatitlán

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Instituto Tecnológico de Minatitlán Realización de un Interprete Aspectos Generales del Proyecto Final Programación de Sistemas II

  2. INTRODUCCION SE DESARROLLARA UN INTERPRETE DE UN LENGUAJE ESPECIFICO, EL CUAL EN LUGAR DE PRODUCIR UN PROGRAMA OBJETO COMO RESULTADO DE UNA TRADUCCIÓN, ESTE REALIZARA LAS OPERACIONES QUE IMPLICA EL PROGRAMA FUENTE. Ing. Octaviano Carrión Francisco Programación de Sistemas II

  3. OBJETIVO DEL PROYECTO REPRESENTAR EL COMPORTAMIENTO DE UN LENGUAJE ESPECIFICO A TRAVÉS DE LA ENTRADA DE UN CÓDIGO FUENTE LIBRE DE ERRORES DE ÍNDOLE LEXICOGRÁFICO, SINTÁCTICO Y SEMÁNTICO. Ing. Octaviano Carrión Francisco Programación de Sistemas II

  4. Programa Fuente Analizador Léxico Analizador Sintáctico Analizador Semántico Administrador de la tabla de símbolos Manejador de errores Generador de Código Intermedio Optimzador de Código Generador de Código Programa Objeto FASES DEL COMPILADOR INTERPRETE Ing. Octaviano Carrión Francisco Programación de Sistemas II

  5. Fases del Interprete Ing. Octaviano Carrión Francisco Programación de Sistemas II

  6. FASES QUE DEBE CONTENER • ANALISIS LEXICO • ANALISIS SINTACTICO • CREACION DE AUTOMATAS • CREACION DE ÁRBOLES SINTACTICOS • EXPRESION POSTFIJA • ANALISIS SEMANTICO • CREACION DE COMPROBADORES DE TIPOS • CREACION DE COMPROBADORES DE UNICIDAD Ing. Octaviano Carrión Francisco Programación de Sistemas II

  7. Continuación . . . • GENERACION DE CODIGO INTERMEDIO • REPRESENTACIONES GRAFICAS • ARBOL SINTACTICO • GRAFO DIRIGIDO ACICLICO • CODIGO DE TRES DIRECCIONES (CUADRUPLOS) • INTERPRETE • COMPORTAMIENTO DEL CODIGO FUENTE Ing. Octaviano Carrión Francisco Programación de Sistemas II

  8. Elementos del Lenguaje Ing. Octaviano Carrión Francisco Programación de Sistemas II

  9. ELEMENTOS DE UN PROGRAMA • Palabras Reservadas • identificadores • Caracteres Especiales • Constantes • Variables • Expresiones • Instrucciones • Bucles • Contadores • Acumuladores • Interruptores • Estructuras • Secuénciales • Selectivas • Repetitivas Ing. Octaviano Carrión Francisco Programación de Sistemas II

  10. Continuación . . . Definición de la Estructura General de un Programa Palabras Reservadas Sentencias de Selección Sentencias de Repetición Funciones o Procedimientos Registros y Arreglos Tipos de Datos Tipos de Operadores Ing. Octaviano Carrión Francisco Programación de Sistemas II

  11. Elementos del Proyecto Aspectos del Software Ing. Octaviano Carrión Francisco Programación de Sistemas II

  12. ELEMENTOS DEL SOFTWARE OPCIONES DE ARCHIVOS Crear Un Nuevo Programa Almacenar Un Programa OPCIONES DE APLICACIÓN Ó OPERACIÓN Compilar Análisis Léxico, Sintáctico, Semántico Generación de Código Ejecutar Interpretación del Código Fuente en Algún Lenguaje Especifico Ing. Octaviano Carrión Francisco Programación de Sistemas II

  13. Continuación . . . OPCION DE AYUDA Lenguaje del Interprete Uso de la Aplicación LISTA DE ERRORES Número del Error Nombre del Error Descripción del Error Ing. Octaviano Carrión Francisco Programación de Sistemas II

  14. Continuación . . . • OPCION DE VERIFICACION • Expresión Postfija • Comprobadores De Tipos • Árbol Sintáctico • Código De Tres Direcciones (Cuadruplos) Ing. Octaviano Carrión Francisco Programación de Sistemas II

  15. Continuación . . . Ejemplo de un código fuente, Vista de la Aplicación…. Introduce el numero a elevar a la potencia Programa Calculo_Potencias Var N , P, i, pot : Entero Inicio Escribir "Introduce el numero a elevar a la potencia " Leer N Escribir "Introduce el valor de la potencia " Leer P pot = 1 i = 1 Mientras i<=P Hacer pot=pot * N i=i+1 Fin_mientras Escribir "La potencia es ", pot Fin. Programa Calculo_Potencias _ 3 Var N , P, i, pot : Entero Introduce el valor de la potencia Inicio _ 3 Escribir "Introduce el numero a elevar a la potencia " OP ARG1 ARG2 RES = 1 pot Leer N Escribir "Introduce el valor de la potencia " Leer P OP ARG1 ARG2 RES * pot N T1 = T1 pot pot = 1 pot=pot * N La potencia es 27 Escribir "La potencia es ", pot Ing. Octaviano Carrión Francisco Programación de Sistemas II

  16. Elementos del Proyecto Aspectos Documentales Ing. Octaviano Carrión Francisco Programación de Sistemas II

  17. DOCUMENTACION DEL PROYECTO • INTRODUCCION • JUSTIFICACION • OBJETIVOS Y METAS • OBJETIVO GENERAL • OBJETIVO ESPECIFICO • METAS • PROCEDIMIENTO Y DESCRIPCION DE LAS ACTIVIDADES • CREACION DEL ANALIZADOR LEXICO • CREACION DEL ANALIZADOR SINTACTICO • CREACION DEL ANALIZADOR SEMANTICO • CREACION DEL GENERADOR DE CODIGO INTERMEDIO • CREACION DEL INTERPRETE Ing. Octaviano Carrión Francisco Programación de Sistemas II

  18. Continuación … • PARA LA SECCION ANTERIOR, SE DEBERA CONSIDERAR INFORMACION TECNICA/CIENTIFICA PARA CADA SUBTEMA: • A. LEXICO: GENERADOR DE LOS COMPONENTES LEXICOS • A. SINTACTICO: CREACION DE AUTOMATAS • CREACION DE ÁRBOLES SINTACTICOS • EXPRESION POSTFIJA • A. SEMANTICO: CREACION DE COMPROBADORES DE TIPOS • CREACION DE COMPROBADORES DE UNICIDAD • CODIGO INTERMEDIO: REPRESENTACIONES GRAFICAS • ARBOL SINTACTICO • GRAFO DIRIGIDO ACICLICO • CODIGO DE TRES DIRECCIONES (CUADRUPLOS) Ing. Octaviano Carrión Francisco Programación de Sistemas II

  19. Continuación … • RESULTADOS • INTERFAZ DE USUARIO (SOFTWARE) • CONCLUSION • RECOMENDACIONES • ANEXOS • GLOSARIO • BIBLIOGRAFIA NOTA: EL DOCUMENTO DEBERA SER ENTREGADO DE FORMA SIMILAR A UNA TESIS O MEMORIA DE RESIDENCIA EN CUANTO AL FORMATO Y EMPASTADO, LA INFORMACION REFERENTE YA ESTA EN LA PAGINA. Ing. Octaviano Carrión Francisco Programación de Sistemas II

  20. Anteproyecto del Interprete Entrega: Lunes 2 de Febrero Ing. Octaviano Carrión Francisco Programación de Sistemas II

  21. CONTENIDO DEL ANTEPROYECTO NOMBRE DEL PROYECTO JUSTIFICACION OBJETIVOS Y METAS OBJETIVO GENERAL OBJETIVO ESPECIFICO METAS LENGUAJE DE DESARROLLO LENGUAJE PARA EL INTERPRETE Ing. Octaviano Carrión Francisco Programación de Sistemas II

  22. MUCHA SUERTE ☻ LA VAN A NECESITAR Ing. Octaviano Carrión Francisco Programación de Sistemas II

More Related