Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 553 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 553 Bytes

Mini_Project-Arthimetic-Parser

This project reimplements the Arithmetic Parser (no parenthesis) from https://github.com/DoctorWkt/acwj - 03 Precedence.

This parser will evaluate simple arithmetic expressions comprise of "+,-,*,/" and integers.

Grammar: There can only be integers and operations. There must be one and only one operation in between integers (run example inputs to see).

How to run:

  • Command line (Linux): cc -o parser -g main.c scan.c expr2.c tree.c interp.c

./parser input02

  • There can be other txt files in place of input01