Path: Compilers : Example table parser :
Matt's Page
Table Parser Example
This is an example of a table parser that ues a matrix and a stack
to parse math expressions.
Source Code
table_parse.cpp
- this is the source code for the example table parser
Example
test.txt
C:\table_parse> table_parser.exe test.txt
PUSH 2
PUSH 3
ADD(2,3)
PUSH 2
SUB(5,2)
PUSH 2
DIV(3,2)
APOP a
APUSH a
1.5
Downloads
table_parser.exe
table_parse.tar.gz