Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 392 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 392 Bytes

ExprToAsm

Quickstart

To use exprtoasm:

$ git clone https://github.com/semicube/expr-to-asm.git
$ cd expr-to-asm/
$ ./build.sh
$ ./exprtoasm -v "((2 + 3)*5 - 2)/7"
$ gcc output.s -o output
$ ./output

To test the parser, add your lex rules in lex.h, semantic rules in grammar.txt, input in input.txt

$ cd parsing-examples/
$ ./build.sh
$ ./test