ciscou / pascual

toy compiler for a pascal-like language (in bison + flex)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pascual

toy compiler for a pascal-like language (in bison + flex)

building

just make it. You'll need flex, bison, and a C compiler. Ah, and ruby, because I haven't written a C interpreter (yet?)

testing

make test. If git diff is clean you didn't break anything. You can add new .pas files to the tests/ folder and make test will generate the .asm and .txt files for you. Don't forget to add all the test files to git.

About

toy compiler for a pascal-like language (in bison + flex)


Languages

Language:Yacc 28.8%Language:Assembly 19.9%Language:Ruby 17.9%Language:Pascal 17.8%Language:Lex 11.1%Language:Makefile 4.6%