6cbc28e092
Maybe fixed some memory leaks.
...
I don't know cauase lsan isn't working.
2025-02-04 17:55:47 -05:00
408a5a46c0
Can set and ref vars in main scope.
...
One can now assign and reference variables in the main scope, as it has
been put in a block through the parser.
Also added some tests for this purpose.
2025-02-04 17:28:06 -05:00
78e31c3e27
Fixed block parsing for real this time.
...
I am such an idiot, ast_block_data_init() just ignored the given array
lol.
2025-02-04 16:50:04 -05:00
d5a07fae56
Started adding scope.
...
Doesn't really do anything yet as blocks aren't fully implemented.
2025-02-04 11:30:45 -05:00
5d81054cf6
Added variable definitions.
2025-02-03 11:28:47 -05:00
a5a86dc080
Basic blocks now work.
2025-02-01 18:40:43 -05:00
70393ef9ae
Started work on blocks and the hash table.
2025-02-01 11:01:01 -05:00
27e61471a8
Fixed some things.
2025-01-25 10:12:15 -05:00
8b01407374
Added initial support for variables.
...
They are now parsed correctly, though they cannot be defined manually
and all have a value of 42.42.
2025-01-20 14:47:58 -05:00
4be71317b0
Fixed memory leaks.
2025-01-18 10:41:54 -05:00
1e11b5921d
It all works! (except for mem leaks)
2025-01-18 09:42:28 -05:00
7343c3b9d9
Fixed some function parsing.
2025-01-17 11:49:51 -05:00
9e8410d4cf
Parens.
2025-01-16 11:59:34 -05:00
bc0c4f33ad
Cleaned up.
2025-01-14 15:11:20 -05:00
1098fa252f
Added parenthesis.
...
Also updated some grammar rules for negatives to be more general.
2025-01-14 13:59:26 -05:00
2ce89fb39a
Added arbitrary length functions.
2025-01-11 10:35:42 -05:00
0731e40e6a
Fixed precedence.
2025-01-04 14:01:05 -05:00
9a9e5cd3e0
Fixed parsing of negative numbers.
2025-01-04 09:53:39 -05:00
e05ebeef2a
Added the ability to call infix function backend.
2024-12-28 18:59:04 -05:00
bdca40bae4
Made the infix ops call the normal functions.
2024-12-28 18:42:37 -05:00
b4cd46a1e7
Added division.
2024-12-28 18:39:33 -05:00
653736622f
Add multiplication.
...
Supports negative numbers too.
2024-12-21 10:45:43 -05:00
e3afe52ab7
Added negative numbers.
2024-12-21 10:33:36 -05:00
905acacd07
Fixed float addition.
...
One can now add floats, will also print the AST.
2024-12-21 10:12:30 -05:00
feae5d560a
Trimmed grammars.
2024-12-07 11:02:22 -05:00
ec268f6047
Nothing works.
2024-12-07 11:01:00 -05:00
7b19e553f2
With token.c.
2024-12-07 10:33:16 -05:00
85e17ede84
Addition with floats is now entirely possible.
2024-11-30 11:15:18 -05:00
8e5b39a6e4
Can now do integer addition (with floats! :D).
2024-11-30 10:44:21 -05:00
4514d94be9
Basic addition with integers is now available.
2024-11-30 10:24:31 -05:00
4080d1a80a
Cleaned up.
2024-11-23 10:21:34 -05:00
a36ae22d52
Added exec, grammar files.
2024-11-23 09:30:35 -05:00
ad8ac61b98
Parse.
2024-11-16 10:42:50 -05:00
e5bb4dfd96
Now compiles without warning.
2024-11-16 10:15:30 -05:00
363188d7d6
The.
2024-11-16 10:00:40 -05:00
139d6fcb22
Things.
2024-11-09 11:09:57 -05:00
92d9da14c2
Grammars are broken.
2024-11-09 10:27:03 -05:00
ecc12f6f3b
Begin bison-based parsing.
2024-11-02 10:31:55 -04:00