Commit Graph

6 Commits

Author SHA1 Message Date
Aryadev Chavali
737986eb54 parser/ast: Added pretty printers for objects and ASTs 2026-01-22 21:46:35 +00:00
Aryadev Chavali
3354625094 parser/parser.c: parser subroutines prototypes
Even easier to read now: the main routine (parse) is close to the top
of the code unit, and the rest fall underneath in order of importance.
2026-01-22 21:46:35 +00:00
Aryadev Chavali
7955cac4a1 parser/parser.c: stream function prototypes
I've made prototypes for them, put at the top, and moved their
implementations to the bottom.  They're not exposed to anything
outside this code unit.  Now, when reading the code, the parsing
routines (which are the main reason to be here) are at the top and
clear to read.
2026-01-22 21:45:20 +00:00
Aryadev Chavali
a977f01a2a A whole host of stuff
We now have a primitive and not fully tested parser for strings and
symbol sequences.  We record the lines and columns of each object on
the object for better compile time error handling.

I've also structured the code base in a slightly weirder fashion,
which makes my includes look nicer.  I've split up stuff quite a bit
to ensure code units are bit more focused.
2026-01-22 21:25:30 +00:00
Aryadev Chavali
4ec6dd8259 Switch to C instead of C++, added example, program now reads file 2026-01-22 18:08:34 +00:00
Aryadev Chavali
4ac780e3e9 hello world! 2026-01-22 18:06:42 +00:00