Ian Piumarta
720c2c141d
Export prim_parseFrom to meta language.
před 2 roky
Ian Piumarta
2f2f27ccf0
Record function definitions in program.last map.
před 2 roky
Ian Piumarta
8845a0baba
Add keyword arguments to newCall, meta grammar, and t_Call case of evaluator.
před 2 roky
Ian Piumarta
4413adc94d
Use C_string for multi character sequences.
Use C_StringLiteral for multi part string literals and C_string for each part.
před 2 roky
Ian Piumarta
20a3d6d17b
Add everyExternalDeclaration() and ensure().
před 2 roky
Ian Piumarta
3a14858a70
Make yy context be local.
Add input struct pointer to yy context object.
Returning multiple objects from meta function appends them all to program.
Meta import via read-eval-print instead of changing input file pointer.
Add treeCopy and treeCopyUnquoting functions.
Add primitive treeCopy.
před 2 roky
Ian Piumarta
516867784d
Add global parsimony variables to track struct/union/enum declarations.
před 2 roky
Ian Piumarta
79a457b358
Cosmetic.
před 2 roky
Ian Piumarta
c2ede14d6a
Add prim_treeCopy primitive; move some functions to before the grammar.
před 2 roky
Ian Piumarta
9060483dbd
Move meta language environment initialisation out of main() to init().
před 2 roky
Ian Piumarta
d22ed02e77
Remove debugging printf.
před 2 roky
Ian Piumarta
8f69c6f81d
Reorganise grammar putting common rules at the end.
C and meta have their own space rules - and --.
před 2 roky
Ian Piumarta
7b881478fd
Add names of rules as comments after section numbers for navigation.
před 2 roky
Ian Piumarta
d9f06de063
Eval handles Undefined and Function in switch to avoid compiler warning.
před 2 roky
Ian Piumarta
238cce2151
Add map_pop to remove the last element from an array-like map.
před 2 roky
Ian Piumarta
eb85a1fb75
Compare symbols by their name not by their address to prevent non-determinism.
před 2 roky
Ian Piumarta
886cf28409
Clean also removes dSYM directories.
před 2 roky
Ian Piumarta
51d648e7e1
Move source files into src subdir.
Makefile cleans dSYM directories.
před 2 roky
Ian Piumarta
fdcbaeef72
Reorganise test directories.
před 2 roky
Ian Piumarta
7b886f8036
add slices and additional constructors for: array map symbol string
před 2 roky
Ian Piumarta
6ffcae2eab
remove is_C_keyword flag from Symbol payload; add is_C_keyword() function
před 2 roky
Nathan R
4b9d58177b
fixed tree identation for meta nodes
před 3 roky
Nathan R
392a8bea7d
new input file with dynamic C expression
před 3 roky
Nathan R
828912aa81
last day modifications, more incoming
před 3 roky
Nathan R
165efe942e
fixed identation and added a way to know if a list is empty
před 3 roky
Nathan R
a0ce191245
corrected some bugs with the - (blank) rule
před 3 roky
Nathan R
c0c4334e85
added a way to print all the tree
před 3 roky
Nathan R
ad1111a9b6
added a way to print meta nodes, some nodes are missing but most of it is there
před 3 roky
Nathan R
6261f1e872
fixed output
před 3 roky
Nathan R
42fe9fbe10
removed meta.leg
před 3 roky
Ian Piumarta
695a9d39df
allow C and meta to coexist; add @ prefix for meta statements in grammar.
před 3 roky
Nathan R
7f71bb9df8
added meta rules, new.txt passes TODO : fix assterion line 3291
před 3 roky
Nathan R
4a62df2613
added meta.leg with all rules refactored
před 3 roky
Nathan R
2b5abcd4c4
typo
před 3 roky
Nathan R
31f4d9ed14
updated grammar + added some types
před 3 roky
Nathan R
9a08ccd4d0
updated comments
před 3 roky
Nathan R
ecb8b27650
updated dotest
před 3 roky
Nathan R
50cddd1fd7
input updated
před 3 roky
Nathan R
47a3a7a991
remove all *.out files
před 3 roky
Nathan R
a60f4c2064
added comments where the test fails
před 3 roky
Nathan R
ad7f76f5a5
added comments to know where the test should break
před 3 roky
Nathan R
b46c089d8d
deleted *.out files
před 3 roky
Nathan R
2fada73661
typo 'typedeffing'
před 3 roky
Nathan R
23b1d94705
updated Makefile
před 3 roky
Nathan R
b4dad36909
added a file to help debug
před 3 roky
Nathan R
dbb3902c87
deleted ccmeta-tree.txt
před 3 roky
Nathan R
758f5b7f51
updated dotest with new test files
před 3 roky
Nathan R
e640f46211
updated Makefile with everything working
před 3 roky
Nathan R
e0d4219441
added a rule to ignore some useless files
před 3 roky
Nathan R
24c4dbfde3
new test files
před 3 roky