Commit Graph

29 Commits

Author SHA1 Message Date
ala89
0759050fef Add new Type struct 2023-12-26 15:50:33 +01:00
ala89
6d608f00cd Add return keyword 2023-12-26 12:46:05 +01:00
5fed47367d Move errors: types.h -> errors.h 2023-12-15 14:57:07 +01:00
ala89
965d834d22 Fix tokenizer int overflow 2023-12-15 14:46:24 +01:00
ala89
eb29c03359 New error system 2023-12-15 14:11:44 +01:00
ala89
62eb2bece6 Add break and continue (partial) 2023-12-13 12:22:58 +01:00
ala89
b47091527e Remove AST analysis dependency 2023-12-08 16:19:41 +01:00
ala89
6f71314f3f Upgrade memory 2023-12-08 15:29:30 +01:00
ala89
9e2fca94a1 Fix debug_print_token 2023-12-08 14:01:28 +01:00
ala89
b501c5e4a6 Refactor error classes 2023-12-08 09:40:14 +01:00
ala89
a1fa96a626 Add double type 2023-12-08 09:04:05 +01:00
ala89
5925582de8 Add while and for to lexer 2023-11-29 11:46:01 +01:00
ala89
fc7b3d440a Add more lexer tests 2023-11-24 10:21:58 +01:00
ala89
c61b26e692 Add more logical operators 2023-11-22 16:20:20 +01:00
ala89
fb261e26f9 Add comparison operators 2023-11-22 16:03:27 +01:00
ala89
574f73b637 Add more tests 2023-11-22 15:31:30 +01:00
1e0d372fc6 Add conditional statements parsing 2023-11-16 14:09:32 +01:00
ala89
18f69eef08 Add tokenization for conditionnal statements 2023-11-15 17:15:18 +01:00
84e344a970 Persistent line number 2023-11-15 16:07:50 +01:00
ala89
7b89fcbf1f Memory types 2023-11-15 15:42:30 +01:00
ced173d80f main: add pretty errors 2023-11-15 15:23:33 +01:00
ala89
cb3444fcf3 Add code position to tokens 2023-11-15 14:31:11 +01:00
ala89
dfc0fd87d7 Add more tests 2023-11-15 11:59:38 +01:00
fcd0c34885 Added ParIdentifier, ++, --
(tokens & ast for now)
2023-11-14 17:00:34 +01:00
fea4292700 Add _debug_print_tree 2023-11-10 19:04:24 +01:00
ala89
d3769e5630 Small fixes 2023-11-10 17:50:00 +01:00
ala89
ede4dea616 Add interpreter 2023-11-10 17:35:33 +01:00
ala89
87f5ba4100 Replace unions with variants 2023-11-10 13:42:53 +01:00
ala89
f04271df19 Add tokenizer 2023-10-27 16:56:54 +02:00