Skip to content

TimosPal/Arithmetic-expression-parser

Repository files navigation

Arithmetic-expression-parser

A simple recursive descent parser for arithmetic expressions.

First / Follow / Lookahead sets are included

The parser also evaluates the value of the expression.

Allowed symbols : {(,),*,/,+,-}

Input example : (1-2*(2*(1-24))/(20*2/(3-4))

How to run

Compile with the given makefile , run the program and input an arithmetic string with the allowed symbols.