Interpret arithmetic expressions to English
Implemented 3 phases for the arithmetic expressions compiler:
- Lexical analysis
- Syntax analysis
- Intermediate code generation
Interpretation is done based on below table:
Eng | num | Eng | num | Eng | num | ||
---|---|---|---|---|---|---|---|
Zer | 0 | Sev | 7 | Plu | + | ||
One | 1 | Eig | 8 | Min | - | ||
Two | 2 | Nin | 9 | Mul | * | ||
Thr | 3 | Ten | 10 | Div | / | ||
Fou | 4 | Hun | 100 | ||||
Fiv | 5 | Tou | 1000 | ||||
Six | 6 |