Commit graph

24 commits

Author SHA1 Message Date
Quentin Carbonneaux
12ebc15a38 add return, break, globals in minic 2015-10-12 17:49:32 -04:00
Quentin Carbonneaux
e33a10a8a4 limit the amount of warnings in prime example 2015-10-12 17:49:00 -04:00
Quentin Carbonneaux
e1609b24e6 make mcc script more robust 2015-10-12 17:48:34 -04:00
Quentin Carbonneaux
ccd6bd869c fix stupid bug in the example 2015-10-12 16:20:59 -04:00
Quentin Carbonneaux
cf9916d00d fix minor parsing issues 2015-10-12 14:33:05 -04:00
Quentin Carbonneaux
fbee480f2e add one small test 2015-10-12 14:32:48 -04:00
Quentin Carbonneaux
31b19a21b8 finish rough implementation of calls 2015-10-12 14:00:20 -04:00
Quentin Carbonneaux
f4dc0f98a5 add a cheap implementation of sizeof 2015-10-12 12:50:58 -04:00
Quentin Carbonneaux
d1b2cf2d49 add super cheap constant folding in minic 2015-10-12 12:40:55 -04:00
Quentin Carbonneaux
7c7a8b30ea start implementing basic function calls 2015-10-09 21:36:39 -04:00
Quentin Carbonneaux
dcf9840bae uniformize naming in minic 2015-10-08 23:59:33 -04:00
Quentin Carbonneaux
5d2609b167 add clumsy support for string literals
It's currently clumsy because they are given the type 'int *'
instead of 'char *', the reason is that the char base type is
not supported now.  I don't think it would be hard to add
proper support for char, though.
2015-10-08 23:52:44 -04:00
Quentin Carbonneaux
a72dfedc1f update miniyacc 2015-10-08 23:52:38 -04:00
Quentin Carbonneaux
a5428d33e1 remove example file 2015-10-04 22:54:07 -04:00
Quentin Carbonneaux
5b583f0f1b add gitignore to minic/ 2015-10-04 22:53:47 -04:00
Quentin Carbonneaux
4eb54dc750 support unary minus 2015-10-04 21:08:57 -04:00
Quentin Carbonneaux
ae38614f94 add post {in,de}crement support + fix grammar 2015-10-04 21:01:56 -04:00
Quentin Carbonneaux
47dcf86f19 update test to new syntax 2015-10-04 15:19:05 -04:00
Quentin Carbonneaux
6b3cbe2e83 parse functions in minic 2015-10-04 15:18:27 -04:00
Quentin Carbonneaux
4beee73fd3 update miniyacc 2015-10-04 15:17:58 -04:00
Quentin Carbonneaux
5b8b78f2f1 == and != do not consider signs 2015-10-03 11:38:28 -04:00
Quentin Carbonneaux
04ed7f56aa minor bug in case While 2015-10-02 15:46:24 -04:00
Quentin Carbonneaux
d1c348bf15 oops, stupid swap in a printf 2015-10-02 15:36:51 -04:00
Quentin Carbonneaux
30eced928c start an example compiler for a subset of C 2015-10-02 15:34:38 -04:00