A PARSER CLASS IN JAVA TO EVALUATE ALGEBRAIC EXPRESSIONS

Descripción del Articulo

The article presents a Parser class in Java to evaluate algebraic expressions using fundamental algorithms for the construction of compilers, passing from the conversion of expressions from infix to postfix, the evaluation of postfix expressions, the evaluation for precedence of operators, parser al...

Descripción completa

Detalles Bibliográficos
Autores: Pereira Souto, Daisi, Amaro Baldeón, Roberto, Leitão Russo, Suzana
Formato: artículo
Fecha de Publicación:2006
Institución:Universidad Nacional Mayor de San Marcos
Repositorio:Revistas - Universidad Nacional Mayor de San Marcos
Lenguaje:español
OAI Identifier:oai:ojs.csi.unmsm:article/5764
Enlace del recurso:https://revistasinvestigacion.unmsm.edu.pe/index.php/idata/article/view/5764
Nivel de acceso:acceso abierto
Materia:Parser
lexical analyser
postfix expressions evaluation
operators algorithm
analizador léxico
evaluación de expresiones postfijas
algoritmo de precedencia de operadores.
Descripción
Sumario:The article presents a Parser class in Java to evaluate algebraic expressions using fundamental algorithms for the construction of compilers, passing from the conversion of expressions from infix to postfix, the evaluation of postfix expressions, the evaluation for precedence of operators, parser algorithms of precedence and construction algorithm of precedence functions. The goal of the article is to write a lexical analyser in a conventional language of systems programming, using the possibilities of input and output of Java language in order to read expressions to evaluate from the input, to process them and to send the results to the output.
Nota importante:
La información contenida en este registro es de entera responsabilidad de la institución que gestiona el repositorio institucional donde esta contenido este documento o set de datos. El CONCYTEC no se hace responsable por los contenidos (publicaciones y/o datos) accesibles a través del Repositorio Nacional Digital de Ciencia, Tecnología e Innovación de Acceso Abierto (ALICIA).