Kayne Ruse
ea3ca2751c
Fixed failing printing of compound types
2022-09-01 18:56:28 +01:00
Kayne Ruse
d055e9dc94
WE ARE THE CHAMPIONS!
2022-08-29 15:33:58 +10:00
Kayne Ruse
a6f0200255
Eventually gonna squash all of today's work
2022-08-29 04:08:31 +01:00
Kayne Ruse
f705d82aee
Wrote some small tests
2022-08-28 09:35:46 +01:00
Kayne Ruse
a4f1e048e9
Function calls, with args and single returns are working
2022-08-26 01:48:26 +01:00
Kayne Ruse
041fe99e01
Function declaration seems to work
2022-08-25 15:19:08 +01:00
Kayne Ruse
b385b461e0
Increment and decrement operators work
2022-08-21 00:23:09 +01:00
Kayne Ruse
18c5fb6add
Break and continue keywords are working
2022-08-20 20:08:22 +01:00
Kayne Ruse
975ed41d14
If-then-else is working with jump statements
2022-08-20 12:38:29 +01:00
Kayne Ruse
2bf721867b
Comparions and the ! operator work
2022-08-20 06:20:20 +01:00
Kayne Ruse
574a864dd0
Reworked the type system, types now have a single value
2022-08-17 17:39:33 +01:00
Kayne Ruse
53f0996fd1
Types are being read into the variable declaration, not yet used
2022-08-12 15:06:41 +01:00
Kayne Ruse
2f18989f25
Types now exist, but they're not being embedded into bytecode yet
2022-08-12 09:11:43 +01:00
Kayne Ruse
380b7a3699
fixed a bug
2022-08-10 18:22:02 +01:00
Kayne Ruse
67f7b3e436
Arrays and dictionaries have been implemented, read more
...
The arrays and dictionaries are currently being printed out correctly,
afaik. This means I should be able to go back and work on the type
system, assuming nothing happens.
2022-08-10 17:42:04 +01:00
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
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
3fb952e3c2
Minor tweaks
2022-08-08 03:42:48 +01:00
Kayne Ruse
3b89e216cc
Fixed an non-optimized grouping bug
2022-08-07 16:46:54 +01:00
Kayne Ruse
9a415738d9
Implemented groupings
2022-08-07 15:04:19 +01:00
Kayne Ruse
a05b93975e
Basic arithmetic works
2022-08-06 14:50:22 +01:00
Kayne Ruse
6b33895f75
Added optimisation levels
2022-08-06 05:59:29 +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