|
8e853aaaf2
|
parser: Add comma
|
2023-12-15 10:52:53 +01:00 |
|
|
0033c4b814
|
Fix variables tests
|
2023-12-15 10:38:36 +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 |
|
|
a8546755af
|
Remove AST modification
|
2023-12-08 16:05:09 +01:00 |
|
|
0935dff3a5
|
Add static analysis
|
2023-12-08 15:59:45 +01:00 |
|
ala89
|
6f71314f3f
|
Upgrade memory
|
2023-12-08 15:29:30 +01:00 |
|
ala89
|
753d179d47
|
Edit Type enum
|
2023-12-08 14:17:15 +01:00 |
|
ala89
|
9e2fca94a1
|
Fix debug_print_token
|
2023-12-08 14:01:28 +01:00 |
|
ala89
|
5be12fbf9e
|
Add templated memory
|
2023-12-08 10:12:23 +01:00 |
|
ala89
|
3e93021793
|
Fix
|
2023-12-08 09:41:57 +01:00 |
|
ala89
|
b501c5e4a6
|
Refactor error classes
|
2023-12-08 09:40:14 +01:00 |
|
ala89
|
03ac8336c0
|
Add scope types
|
2023-12-08 09:21:34 +01:00 |
|
ala89
|
a1fa96a626
|
Add double type
|
2023-12-08 09:04:05 +01:00 |
|
ala89
|
cfe02062a6
|
Add for and while semantics + tests
|
2023-12-02 15:49:27 +01:00 |
|
|
a693258d77
|
Parser: Add while & for
|
2023-12-01 14:27:48 +01:00 |
|
ala89
|
5925582de8
|
Add while and for to lexer
|
2023-11-29 11:46:01 +01:00 |
|
ala89
|
1dec4b3c4f
|
Add semantic of bool logic and comparisons + tests
|
2023-11-27 21:16:39 +01:00 |
|
|
285c054d37
|
Fix comp parse order
|
2023-11-24 11:15:17 +01:00 |
|
|
76770b6ecc
|
Parse logical operators
|
2023-11-24 11:03:06 +01:00 |
|
|
b7dcca2d47
|
Parser: Renaming grammar symbols
|
2023-11-24 11:03:06 +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 |
|
ala89
|
ce431b5453
|
Add block scopes
|
2023-11-22 14:32:22 +01:00 |
|
ala89
|
24228f80f5
|
Add scoped memory and centralize type dependencies
|
2023-11-22 13:52:16 +01:00 |
|
|
60eccf1c15
|
input: Add Begin & End
|
2023-11-17 11:08:17 +01:00 |
|
|
9b0c3900f8
|
Better if/else syntax errors
|
2023-11-17 11:01:57 +01:00 |
|
|
252e8ad829
|
Add ParseError: a dependent statement may not be a declaration
|
2023-11-17 10:49:10 +01:00 |
|
|
ec355abb20
|
Add NodeType::Bloc
|
2023-11-16 14:39:52 +01:00 |
|
|
1e0d372fc6
|
Add conditional statements parsing
|
2023-11-16 14:09:32 +01:00 |
|
|
9a4d993b4b
|
New input:get_line system
|
2023-11-15 21:13:03 +01:00 |
|
ala89
|
18f69eef08
|
Add tokenization for conditionnal statements
|
2023-11-15 17:15:18 +01:00 |
|
ala89
|
5e304a70aa
|
Conditional statements grammar
|
2023-11-15 16:33:25 +01:00 |
|
ala89
|
1a37e67b2c
|
Merge branch 'main' of gitlab.aliens-lyon.fr:alucas03/c-repl into main
|
2023-11-15 16:10:39 +01:00 |
|
ala89
|
5bed6a303c
|
More tests
|
2023-11-15 16:10:36 +01:00 |
|
|
221440a235
|
Add newline before error
|
2023-11-15 16:08:05 +01:00 |
|
|
84e344a970
|
Persistent line number
|
2023-11-15 16:07:50 +01:00 |
|
|
a57b759af9
|
Main: catch errors
|
2023-11-15 15:44:42 +01:00 |
|
|
51662cea3e
|
Remove ; )
|
2023-11-15 15:42:56 +01:00 |
|
ala89
|
7b89fcbf1f
|
Memory types
|
2023-11-15 15:42:30 +01:00 |
|
|
b407b21cde
|
Change position
|
2023-11-15 15:38:53 +01:00 |
|
|
ced173d80f
|
main: add pretty errors
|
2023-11-15 15:23:33 +01:00 |
|
|
cef08d30e1
|
Add CodePosition to AST
|
2023-11-15 14:59:28 +01:00 |
|
|
1cc9868567
|
Input: fix last line missing
|
2023-11-15 14:57:32 +01:00 |
|
|
b87bcd68b0
|
Add error pretty print
|
2023-11-15 14:37:20 +01:00 |
|
ala89
|
cb3444fcf3
|
Add code position to tokens
|
2023-11-15 14:31:11 +01:00 |
|
ala89
|
87bcd0d064
|
Add CodePosition
|
2023-11-15 14:06:03 +01:00 |
|
|
57439de0f7
|
Change input type: string -> vector<string>
|
2023-11-15 13:48:40 +01:00 |
|
ala89
|
e9723fef07
|
Add lexer and interpreter errors
|
2023-11-15 13:40:37 +01:00 |
|
ala89
|
dfc0fd87d7
|
Add more tests
|
2023-11-15 11:59:38 +01:00 |
|
|
0eb84afebf
|
Added ++, -- to the interpreter
|
2023-11-14 19:48:24 +01:00 |
|
|
fcd0c34885
|
Added ParIdentifier, ++, --
(tokens & ast for now)
|
2023-11-14 17:00:34 +01:00 |
|
|
0b79ee7822
|
Parser:Fix bad variant access
|
2023-11-11 10:36:37 +01:00 |
|
|
89e5538f39
|
Forgot header
|
2023-11-11 09:11:35 +01:00 |
|
|
6dece0b9d9
|
Clean debug tree
|
2023-11-11 09:06:44 +01:00 |
|
|
f5ba6f19b4
|
Stop at EOF
|
2023-11-11 09:05:57 +01:00 |
|
|
b07c06ec9f
|
Create SyntaxError Exception
|
2023-11-11 09:05:49 +01:00 |
|
|
691bf3a232
|
Fix Expr & T parsing
|
2023-11-10 20:02:54 +01:00 |
|
|
46b9bc4cf4
|
Remove Epsilon Nodes
|
2023-11-10 19:13:25 +01:00 |
|
|
fea4292700
|
Add _debug_print_tree
|
2023-11-10 19:04:24 +01:00 |
|
|
966bd36dad
|
Fix ParserException not catched
|
2023-11-10 17:53:41 +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 |
|
|
a8e6a4552b
|
Add parser.cpp
|
2023-11-10 17:27:54 +01:00 |
|
|
97f82b7307
|
Add parser.h functions
|
2023-11-10 16:56:50 +01:00 |
|
ala89
|
87f5ba4100
|
Replace unions with variants
|
2023-11-10 13:42:53 +01:00 |
|
|
e889be9f34
|
Update {parser,tokenize}.h
|
2023-10-27 17:53:58 +02:00 |
|
ala89
|
60115b9e3d
|
Update parser.h
|
2023-10-27 17:16:41 +02:00 |
|
|
4d15417a64
|
Add parser.h
|
2023-10-27 17:07:58 +02:00 |
|
ala89
|
f04271df19
|
Add tokenizer
|
2023-10-27 16:56:54 +02:00 |
|
ala89
|
bc7c075f9a
|
Add Percent to tokens
|
2023-10-27 16:37:51 +02:00 |
|
ala89
|
35181444f3
|
Convert Int token type to Number
|
2023-10-27 16:16:40 +02:00 |
|
ala89
|
11f3897b7a
|
Add global def to tokenize.h
|
2023-10-27 14:46:32 +02:00 |
|
ala89
|
f6fe76d40e
|
Add tokens
|
2023-10-27 14:37:03 +02:00 |
|
|
4d0f391a31
|
Add get_input
|
2023-10-27 14:09:25 +02:00 |
|
|
bb5a2642e3
|
Add main.cpp
|
2023-10-20 17:06:27 +02:00 |
|