/expr_parser_js

An expression parser in JavaScript

Primary LanguageJavaScript

Expression Pareser

An expression parser in JavaScript

What you need

Usage

REPL is now integrated. Write your expressions in the REPL terminal and see the results appear below:

node .

>> 1+2
4
>> 6*2
12
>>

Expressions supported

  • Multiplication *
  • Addition +
  • Subtraction -
  • Division /
  • Less Than <
  • Greater Than >
  • Less or Equal To <=
  • Greater or Equal To >=
  • Not Equal !=
  • Grouping ()

Please, you are free to contribute especially folks new to compiler/intrepreter programming and willing to learn how compilers/interpreters works.