Commit Graph

60 Commits

Author SHA1 Message Date
b762ad154e Formatting 2024-06-11 17:34:00 +05:00
a8e4bfd264 Implement maps 2024-06-11 17:33:41 +05:00
834ec9d3d4 Fix list declarations 2024-06-11 16:54:41 +05:00
e6027bbaf2 Allow print to take multiple arguments 2024-06-11 16:53:40 +05:00
3aa280ba38 Implement list declarations 2024-06-11 16:51:16 +05:00
898fa9b195 How in the bloody hell it end up like that!? 2024-06-11 16:29:40 +05:00
71ee935f7b Rename def to #def 2024-06-11 16:15:09 +05:00
1c9de73b91 Implement longer defines 2024-06-11 16:14:18 +05:00
5cc866637e Add back preprocessing 2024-06-11 16:07:09 +05:00
ab7f648e56 Notify of unknown keywords 2024-06-11 16:06:47 +05:00
57af99e53a Change formating a bit 2024-06-11 16:02:51 +05:00
d5ccf1c0be Add :? as an operator 2024-06-11 16:00:32 +05:00
a1d14e8cfa Add "neg" and "not" keywords 2024-06-11 15:59:53 +05:00
8bf0af96ee Add get keyword 2024-06-11 05:48:18 +05:00
00afc5158f Add string escaping 2024-06-11 05:37:21 +05:00
e8ca2af9bc Add if as an expression 2024-06-11 05:32:55 +05:00
d8636ace10 Fix something 2024-06-11 05:28:24 +05:00
fa45d7b383 Support for if/else 2024-06-11 05:18:45 +05:00
4927054b60 Add "if" support 2024-06-11 05:14:22 +05:00
07f9a6abd8 I am going insane 2024-06-11 03:55:11 +05:00
9e80de017f Remove debug code 2024-06-11 02:57:01 +05:00
b673f99433 Fix multiple statements 2024-06-11 02:53:49 +05:00
eda259dfbf Add print keyword 2024-06-11 02:51:37 +05:00
542547e174 Add more binary operators 2024-06-11 02:45:45 +05:00
d8bd79e8c9 Some formatting 2024-06-11 02:43:06 +05:00
3b8f14cab0 Compiler does something now 2024-06-11 02:40:36 +05:00
3321ca8e1b Start implementing compiler 2024-06-10 23:27:08 +05:00
24042b3f88 Move some stuff around 2024-06-10 20:24:57 +05:00
f0e6936008 Function parsing 2024-06-10 19:14:53 +05:00
a7aefd33ad A change 2024-06-10 02:22:13 +05:00
b3b68ed586 Fix another memory leak 2024-06-10 02:06:51 +05:00
65e360984d Format code better 2024-06-10 01:58:38 +05:00
3128d3c646 Fix a memory leak 2024-06-10 01:15:19 +05:00
3a3014f9a3 Fix segfault 2024-06-10 00:41:11 +05:00
95862b56d2 Funny C unions 2024-06-10 00:38:22 +05:00
eedecc7b51 A bit of refactoring 2024-06-09 23:50:10 +05:00
743bda0437 Remove a comment 2024-06-09 22:32:25 +05:00
6e1de39a2e Fix a bug that produced a lot of NONEs in the syntaxtree 2024-06-09 22:24:58 +05:00
96acb9df26 Make debug tree a bit better 2024-06-09 21:43:02 +05:00
978dfb7309 Something kind of works now 2024-06-09 21:39:12 +05:00
10f61474be Initialize ptr->next in es_addsymbol 2024-06-05 00:11:06 +05:00
cdc2cbaee2 Add "clean" target in Makefile 2024-06-04 23:35:12 +05:00
e473615eca Remove "struct" keyword whenever possible 2024-06-04 00:12:16 +05:00
6fae121463 Add se_istravesable 2024-06-04 00:06:51 +05:00
7ed5367f20 Remove TOPTREE 2024-06-03 23:55:02 +05:00
9764aff184 Move stuff around 2024-06-03 23:49:56 +05:00
b4243755ef Try (unsuccessfully) to make code a bit more readable 2024-06-03 23:23:57 +05:00
512a86ed48 Check if file was opened successfuly 2024-06-03 23:10:03 +05:00
f44429ce5d Initialize previously uninitialized values 2024-06-03 23:04:30 +05:00
0afd640dcc Fix memory leaks 2024-06-03 23:02:30 +05:00