A PARSER CLASS IN JAVA TO EVALUATE ALGEBRAIC EXPRESSIONS

Authors

  • Edgar Ruiz Lizama Universidad Nacional Mayor de San Marcos. Lima, Peru
  • Eduardo Raffo Lecca Universidad Nacional Mayor de San Marcos. Lima, Peru

DOI:

https://doi.org/10.15381/idata.v9i1.5762

Keywords:

Parser, lexical analyser, postfix expressions evaluation, operators algorithm precedence.

Abstract

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.

Downloads

Download data is not yet available.

Author Biographies

  • Edgar Ruiz Lizama, Universidad Nacional Mayor de San Marcos. Lima, Peru

    Ingeniero Industrial. Profesor del Departamento de Ingeniería de Sistemas e Informática, UNMSM.

  • Eduardo Raffo Lecca, Universidad Nacional Mayor de San Marcos. Lima, Peru

    Ingeniero Industrial. Profesor del Departamento de Ingeniería de Sistemas e Informática, UNMSM.

Downloads

Published

2006-07-31

Issue

Section

Sistemas e Informática

How to Cite

A PARSER CLASS IN JAVA TO EVALUATE ALGEBRAIC EXPRESSIONS. (2006). Industrial Data, 9(1), 085-096. https://doi.org/10.15381/idata.v9i1.5762