Inspired by The Super Tiny Compiler.
A tiny recursive-descent parser which uses syntax-directed translation to convert arithmetic infix expressions (+,-,*,/) into postfix notation, with friendly error messages.
Please refer to the comments in parser.hpp
for further understanding.
- g++
git clone https://github.com/coderick14/TheSuperTinyParser.git
cd TheSuperTinyParser
g++ -std=c++14 parser.hpp main.cpp -o parser
./parser