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
c64d451287
Added string concatenation
2022-08-20 22:58:50 +01:00
Kayne Ruse
4f0aebc32f
Type casting is working:
2022-08-19 19:24:07 +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
afad0d99cb
I think var declarations are working correctly; no type checking yet
2022-08-13 15:57:30 +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
998b913fc9
Got literal types represented correctly
2022-08-12 11:10:52 +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
00812e7a73
pre-computed identifer hashes
2022-08-11 18:36:03 +01:00
Kayne Ruse
603d9d2b06
Recursive arrays and dictionaries!
2022-08-11 09:24:13 +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
6f4bfc0e10
Implemented and tested literal dictionary
2022-08-08 07:58:30 +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
7a3986af33
Wrote the interpreter
2022-08-06 07:58:32 +01:00
Kayne Ruse
1ff32fe101
Lexer partially working
2022-08-03 14:06:54 +01:00