Commit Graph

426 Commits

Author SHA1 Message Date
Kayne Ruse
6a883bde96 Parser is reading variable declarations, read more
This is an incomplete process. It's supposed to be robust enough to
support the types of arrays and dictionaries, but arrays and
dictionaries aren't implemented in the literals yet, so that's my next
task.

I'll come back to variable declarations later.
2022-08-10 11:01:32 +01:00
Kayne Ruse
9603baeb0a Added console colors, tweaked help menu 2022-08-09 13:51:03 +01:00
Kayne Ruse
6d5549fc8e Added scopes using '{}' symbols, read more
I've also added a new literal type called 'identifier'. This will be
used for variable names, and has a type mask embedded in it.
2022-08-08 15:02:12 +01:00
Kayne Ruse
08ce270e06 Minor tweak to header loading 2022-08-08 10:35:41 +01:00
Kayne Ruse
cf8b3975c0 Tinkering with the repl 2022-08-08 09:39:40 +01:00
Kayne Ruse
6f4bfc0e10 Implemented and tested literal dictionary 2022-08-08 07:58:30 +01:00
Kayne Ruse
3fb952e3c2 Minor tweaks 2022-08-08 03:42:48 +01:00
Kayne Ruse
ceeca9d40f Fiddling with -Wpedantic 2022-08-07 21:39:21 +01:00
Kayne Ruse
3b89e216cc Fixed an non-optimized grouping bug 2022-08-07 16:46:54 +01:00
Kayne Ruse
072d9c59cc Fixed readme 2022-08-07 15:09:06 +01:00
Kayne Ruse
9a415738d9 Implemented groupings 2022-08-07 15:04:19 +01:00
Kayne Ruse
d7fda480fd Added assert keyword, with re-routable print and assert outputs 2022-08-07 12:26:04 +01:00
Kayne Ruse
7ff232c814 Removed a trace statement 2022-08-06 14:52:59 +01:00
Kayne Ruse
a05b93975e Basic arithmetic works 2022-08-06 14:50:22 +01:00
Kayne Ruse
c178824a0a Forgot a function call 2022-08-06 08:22:09 +01:00
Kayne Ruse
3cdf77b85c Repl working 2022-08-06 08:16:54 +01:00
Kayne Ruse
7a3986af33 Wrote the interpreter 2022-08-06 07:58:32 +01:00
Kayne Ruse
0048c92cf5 Adjusted some includes 2022-08-06 06:16:14 +01:00
Kayne Ruse
6b33895f75 Added optimisation levels 2022-08-06 05:59:29 +01:00
Kayne Ruse
577d1965cb Fixed a missing string terminator 2022-08-05 17:14:33 +01:00
Kayne Ruse
bfaf4e83bb Fixed a string comparison bug 2022-08-05 17:11:21 +01:00
Kayne Ruse
8f2ba5cd50 Tested long literals, fixed a dissection bug 2022-08-05 16:47:09 +01:00
Kayne Ruse
cd05d5d84a Got the compiler partially working 2022-08-05 16:29:12 +01:00
Kayne Ruse
1ff32fe101 Lexer partially working 2022-08-03 14:06:54 +01:00
Kayne Ruse
3cad70dddd Wrote a basic lexer 2022-08-03 09:35:20 +01:00
Kayne Ruse
3cbf7b13eb Initial commit 2022-08-03 07:39:50 +01:00