Skip to content

arminaaki/CLI-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

We implemented a scanner that reads through the characters, and generates tokens for our expression.
Next we implented a parser that detects if the expression is defined in the language
Then, we evaluated the result using a stack .
The Implemented Grammar

X -> AY                                     =
Y -> ;X | EPSILON                           =
A -> BC                                     =
C -> +A | -A | *A | /A | %A | ^A | EPSILON  =
B ->(A) | NUM                               =
=============================================

About

Implement tokenizer, scanner, and parser for a simple calculator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published