Commit graph

24 commits

Author SHA1 Message Date
pommicket
017a70ee7e generating code for casts! 2022-02-10 21:11:53 -05:00
pommicket
d7a9a565a9 fix declaring multiple variables after struct definition 2022-02-08 21:53:14 -05:00
pommicket
aba654c36d fix a bunch of problems from parsing test
- ll suffixes (15ll => 15l)
- newlines between string literals to be concatenated
- fix *x++ = 1;
- default
- printing conditionals & decaying conditional operands
2022-02-07 17:02:57 -05:00
pommicket
e21c1c39a7 capital number suffixes (oops) 2022-02-07 16:07:55 -05:00
pommicket
dfce9118b9 parsing break, continue, return 2022-02-04 19:31:45 -05:00
pommicket
22859ac40a start string initializers 2022-02-01 22:53:57 -05:00
pommicket
01b8a4d728 switch to using mmap for output file 2022-01-27 18:52:39 -05:00
pommicket
d036dcc5ac struct/union definitions 2022-01-26 18:00:47 -05:00
pommicket
2ec0cd4ae3 various typing fixes 2022-01-14 22:16:57 -05:00
pommicket
b79c3e0f5a parsing fixes 2022-01-14 14:02:34 -05:00
pommicket
13363eac1a simple expressions 2022-01-13 16:12:28 -05:00
pommicket
e43f32b932 clean up floats, floats which become infinity and zero 2022-01-12 15:44:44 -05:00
pommicket
ee3c461e6e more complicated floats working so far 2022-01-12 15:34:00 -05:00
pommicket
f17720731d "nice" floating-point literals seem to work 2022-01-12 12:54:06 -05:00
pommicket
0d0455ce92 better float idea 2022-01-12 09:59:34 -05:00
pommicket
cbe3580001 bad float implementation 2022-01-12 09:45:20 -05:00
pommicket
0779a0fab5 more float stuff 2022-01-11 22:43:52 -05:00
pommicket
06ebaf043b untested first stab at floats 2022-01-11 22:29:00 -05:00
pommicket
343129a610 full multiply 2022-01-11 18:03:09 -05:00
pommicket
f8f044a7a2 tokenizing string literals and identifiers 2022-01-11 15:55:37 -05:00
pommicket
a245a5be96 character constants 2022-01-11 15:09:49 -05:00
pommicket
b0837b367e tokenizing integer literals 2022-01-11 14:03:47 -05:00
pommicket
fc96e22d4f better keyword tokenization system 2022-01-11 11:53:36 -05:00
pommicket
97dca844c8 start tokenization 2022-01-11 00:09:11 -05:00