A PARSER CLASS IN JAVA TO EVALUATE ALGEBRAIC EXPRESSIONS

Authors

  • Daisi Pereira Souto Universidade do Estado de Mato Grosso
  • Roberto Amaro Baldeón Universidade do Estado de Mato Grosso
  • Suzana Leitão Russo Universidad Regional Integrada

DOI:

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

Keywords:

Parser, lexical analyser, postfix expressions evaluation, operators algorithm

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

  • Daisi Pereira Souto, Universidade do Estado de Mato Grosso
    Magíster en Ciencias Matemáticas. Profesora del Departamento de Matemática, Universidade do Estado de Mato Grosso - UNEMAT, Brasil.
  • Roberto Amaro Baldeón, Universidade do Estado de Mato Grosso
    Doctor en Ingeniería Mecánica. Profesor del Departamento de Matemática, Universidade do Estado de Mato Grosso - UNEMAT, Brasil.
  • Suzana Leitão Russo, Universidad Regional Integrada
    Doctora en Ingeniería de Producción. Profesora de la Universidade Regional Integrada do Alto Uruguai e das Missões – URI, Brasil.

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), 097-103. https://doi.org/10.15381/idata.v9i1.5764