Open
Conversation
Los borre por error
Se implementa la clase para que al correr el programa se ingrese una sentencia o conjunto de sentencias, para ser analizadas de manera lexica. Al finalizar el analisis lexico, muestra por pantalla los tokens (lexema, clase) con o sin errores.
Se corrigio el analizador ya que el lexema @123 salia como expresion aritmetica.
Se corrigio algunos casos donde se asignaba mal la clase, por ejemplo create rectangle abc ;
Correxion analizador color_def
Se agrego el separador de lexemas enter Se agregaron las clases, operador suma, operador resta, operador division, operador multriplicar, la clase hexadecimal, parentesis apertura y parentesis cierre La clase hexadecimal es la que menos prioridad tiene, por ejemplo si entra ababab aunque sea un hexadecimal se toma como ID, lo mismo para con 123456, se toma como clase Numero Se saca la clase expresion aritmetica, ya que en esta parte no se debe encargar de saber si es o no una exp aritmetica Todos los lexemas se ingresan separados por espacio o enter, por ejemplo (5+5)/2 se debe ingresar ( 5 + 5 ) / 2 No me acuerdo si hay otra cosa...
',' es la clase "coma" +- clase "Adicion" */ clase "Producto"
Se agrega la clase SyntacticAnalizer
Lo de la clase de ayer 10/11
Contiene método para futuro Analisis Semantico
Faltaria imprimirlo, principalmente chequear las exp aritmeticas.
Prints + Correccion If
Modificacion en la muestra del arbol
# Conflicts: # src/main/java/edu/maimonides/multimedia/shapes4learn/analysis/SyntacticAnalyzer.java
Agrego validacion al ciclo de print.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test automaticos y lexema analizer funcionando