Commit Graph

414 Commits

Author SHA1 Message Date
Marc Vertes
11795336f5 Get rid of reflect pkg when handling arrays 2018-02-14 11:45:08 +01:00
Marc Vertes
87edd051e2 Add support of arrays initialized from litterals 2018-02-13 23:48:13 +01:00
Marc Vertes
f24e75120d Fix IF with init statement 2018-02-13 16:20:52 +01:00
Marc Vertes
bd06be616d better implementation of multiple assign 2018-02-13 12:43:37 +01:00
Marc Vertes
592d1bc0ac handle multiple assign/return statements 2018-02-12 17:22:37 +01:00
Marc Vertes
1bbf5b14f9 Fix and test recursive functions with fibonacci numbers 2018-02-12 10:09:02 +01:00
Marc Vertes
bef44db73c handle return values in functions 2018-02-10 21:10:34 +01:00
Marc Vertes
b5ab905e2d Make gi a a real interpreter
Handle #! in first line to allow gi executable scripts.
Load program source from files.
Display AST and CFG graphs on command line flags.
2018-02-08 17:23:23 +01:00
Marc Vertes
e7614c95ef Make function calls work.
Function calls with parameters passed as value now work.
Return value handling and scopes still missing.
2018-02-08 12:01:59 +01:00
Marc Vertes
f440b82788 function calls, in progress 2018-02-07 09:09:11 +01:00
Marc Vertes
24e3acd16a Revert non-recursive tree walk. Make CFG re-entrant. 2018-02-05 13:40:23 +01:00
Marc Vertes
bf9ac2df4c Use frames 2018-02-02 18:34:07 +01:00
Marc Vertes
2f1e444aab Add frames (in progress) 2018-02-02 09:21:06 +01:00
Marc Vertes
75f96aeac7 Apply better names for function and files. Add images for doc 2018-02-01 15:20:37 +01:00