Commit Graph

130 Commits

Author SHA1 Message Date
ala89
de3f9a49b5 Add ControlError class 2024-01-03 18:14:55 +01:00
1553df6328 Update tests 2024-01-03 17:51:27 +01:00
e9fb7c1e2b Add partial return analysis 2024-01-03 17:37:05 +01:00
1bfbd45c4a Add FunctionCall analysis 2024-01-03 17:25:43 +01:00
ala89
70aebb35a6 Refactor test execute functions 2024-01-03 16:20:42 +01:00
ala89
b5e51b8ebc Merge branch 'main' of gitlab.aliens-lyon.fr:alucas03/c-repl into main 2024-01-03 15:52:44 +01:00
ala89
5f232be286 Add interpretation of function calls 2024-01-03 15:52:41 +01:00
396bb5eed0 FunctionPrototype: add another analysis check 2024-01-03 15:28:51 +01:00
fc53bf3113 FunctionDeclaration analysis: add arguments definitions 2024-01-03 15:27:13 +01:00
8401d3d8b6 Merge remote-tracking branch 'refs/remotes/origin/main' 2024-01-03 14:53:58 +01:00
83e12a5b7f Parse function call arguments as a vector instead of a tree 2024-01-03 14:53:18 +01:00
ala89
9b9558ce9f Fix pointer typo 2024-01-03 14:45:13 +01:00
ca02c78673 Add analysis of function declaration & prototype 2024-01-03 14:09:17 +01:00
4de0c57236 Add test/functions 2024-01-03 12:48:25 +01:00
400cf9e6d9 Update memory.cpp 2024-01-03 12:48:11 +01:00
d659fb9779 Add ErrorType::NestedFunction 2024-01-03 12:48:00 +01:00
ala89
b00f3c222d Add make_fn_prototype function 2024-01-03 12:01:40 +01:00
ala89
13b067f803 Add memory features for functions 2024-01-03 11:51:31 +01:00
68b952d105 Add option to disable parIdentifier 2024-01-03 11:06:15 +01:00
ala89
f50b87f68c Implement functions (partial) 2023-12-28 12:13:52 +01:00
91b398dbe9 Add functions parsing 2023-12-27 18:43:56 +01:00
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
ala89
69276515b1 Fix errors 2023-12-26 12:34:05 +01:00
ala89
cd9e0a3941 Merge branch 'main' of gitlab.aliens-lyon.fr:alucas03/c-repl into main 2023-12-15 15:36:14 +01:00
ala89
9589a2b51e Re-add error messages 2023-12-15 15:36:09 +01:00
937f568f76 Merge remote-tracking branch 'refs/remotes/origin/main' 2023-12-15 15:10:39 +01:00
949e1be8ce Fix tests 2023-12-15 15:10:05 +01:00
ala89
a1873af50d Add string split util 2023-12-15 15:00:39 +01:00
5fed47367d Move errors: types.h -> errors.h 2023-12-15 14:57:07 +01:00
ea11ec2944 Add execute.cpp 2023-12-15 14:52:46 +01:00
ala89
965d834d22 Fix tokenizer int overflow 2023-12-15 14:46:24 +01:00
ala89
f7af17c899 Prettify errors 2023-12-15 14:37:39 +01:00
ala89
0cd17b9003 Add tests for continue and comma 2023-12-15 14:25:39 +01:00
ala89
eafb9c1d5d Add comma to interpreter 2023-12-15 14:13:10 +01:00
ala89
eb29c03359 New error system 2023-12-15 14:11:44 +01:00
8e853aaaf2 parser: Add comma 2023-12-15 10:52:53 +01:00
0033c4b814 Fix variables tests 2023-12-15 10:38:36 +01:00
9af941bc2e Add break tests 2023-12-15 10:38:13 +01:00
4172071dba parser: Add continue & break 2023-12-15 10:37:44 +01:00
ala89
1a7b240cb0 Interpret for (;;) correctly 2023-12-13 16:01:54 +01:00
ala89
aad20e3ee5 Remove analysis tests from interpreter 2023-12-13 15:53:22 +01:00
ad87228a45 Add for(;;) and fix analysis for UnaryPlus/Minus 2023-12-13 14:42:29 +01:00
1d571f36b1 Fix variables tests 2023-12-13 14:40:25 +01:00
ala89
62eb2bece6 Add break and continue (partial) 2023-12-13 12:22:58 +01:00
cee884342a Add memory._debug_print() 2023-12-09 12:27:59 +01:00
accf3bad4b Add more debug arguments 2023-12-09 12:05:36 +01:00
bef747d558 Fix analysis 2023-12-09 12:04:43 +01:00
5cce75f835 throw exception(); 2023-12-09 11:41:14 +01:00
ala89
b47091527e Remove AST analysis dependency 2023-12-08 16:19:41 +01:00