Commit graph

199 commits

Author SHA1 Message Date
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
c42cf36dee powers of 10 2022-01-11 17:36:33 -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
pommicket
34dfc3238d ifdef/ifndef/else/endif 2022-01-10 18:04:53 -05:00
pommicket
b963bc91e6 #include 2022-01-10 15:12:24 -05:00
pommicket
f192249c65 macro replacement in #line directives 2022-01-10 12:29:11 -05:00
pommicket
f706d3903a fix line numbering with fmacro invocations across multiple lines 2022-01-10 12:23:56 -05:00
pommicket
a8a30458bd pre-defined macros 2022-01-10 12:00:05 -05:00
pommicket
a0c535620e more correction to match standard 2022-01-10 11:46:19 -05:00
pommicket
e009f63506 make preprocessing behave a bit more like it should 2022-01-10 09:57:36 -05:00
pommicket
6e75b24b7c #line, #pragma 2022-01-09 22:33:47 -05:00
pommicket
29ea5195fa more macro fixes, #undef 2022-01-09 21:55:00 -05:00
pommicket
6ce6f76cc1 preprocessor fixes 2022-01-09 19:53:40 -05:00
pommicket
a2e594c9be almost done # and ## 2022-01-09 18:39:16 -05:00
pommicket
141bc9e49a corrected fmacro rescanning 2022-01-09 17:48:51 -05:00
pommicket
2214ea4017 fmacro # and ## 2022-01-09 17:37:23 -05:00
pommicket
2bb803e673 fix fmacro replacement 2022-01-09 17:26:16 -05:00
pommicket
19ea12a1d4 fmacros starting to work! 2022-01-09 15:56:31 -05:00
pommicket
f08cdc8e22 start fmacro replacement 2022-01-09 12:31:35 -05:00
pommicket
807a6aacf9 object-like macro replacement working? 2022-01-09 00:08:29 -05:00
pommicket
4d5a5d9d97 reading function-like macros 2022-01-08 18:13:48 -05:00
pommicket
3d0adb5f6f start translation phase 4 2022-01-08 14:37:39 -05:00
pommicket
ac6cb985db preprocessing tokens 2022-01-08 12:15:17 -05:00
pommicket
d48816e226 merge term stuff 2022-01-08 10:17:03 -05:00
pommicket
d74f349e27 allow terms to be more complicated 2022-01-08 10:15:43 -05:00
pommicket
5d6b490cce start C compiler 2022-01-07 23:32:27 -05:00
pommicket
262824b214 oops 2022-01-07 22:22:30 -05:00
pommicket
f82581ed76 instruction table, remove old instructions 2022-01-07 20:31:53 -05:00
pommicket
e52793324a finished preprocessor 2022-01-07 14:31:52 -05:00
pommicket
fbe3f4e701 04 compiler fix (global lookup), start preprocessor 2022-01-07 12:06:33 -05:00
pommicket
479ff20704 add 04 to bootstrap, #line 2022-01-07 11:30:14 -05:00
pommicket
519069a89d rename 04b => 04, better 04 README 2022-01-07 11:07:06 -05:00
pommicket
4cd2b7047c 04b initial readme, guessing game, compiler fixes 2022-01-06 23:30:24 -05:00
pommicket
3e73f6625c better test program 2022-01-06 17:54:03 -05:00
pommicket
6f1a085586 if! 2022-01-06 17:37:02 -05:00
pommicket
db552a4dca string 2022-01-06 14:02:30 -05:00
pommicket
8c6b19fdd3 hello world! 2022-01-06 13:53:52 -05:00
pommicket
b66a2dbe6b function calls 2022-01-06 13:13:12 -05:00
pommicket
a415ec31c0 rvalues! 2022-01-06 11:57:55 -05:00
pommicket
9d43ebe2aa number terms! 2022-01-05 23:44:04 -05:00
pommicket
6a31b0560a new language idea 2022-01-05 18:19:28 -05:00