Commit Graph

26 Commits

Author SHA1 Message Date
8207f1f450 Add unit value to interpreter. 2018-06-02 15:59:13 -07:00
0db929b7f7 Fix functions remaining allocated after program exit. 2018-06-02 12:42:06 -07:00
f199bc6efd Add a function to call a function by name. 2018-06-01 23:32:19 -07:00
5fec3bd63c Make operators simply aliases to functions. 2018-06-01 15:24:55 -07:00
b0a25fd53f Add comments to the various function calling functions.
There are a lot of them, and they're fairly arcane.
2018-05-27 18:09:28 -07:00
99c36be175 Free temporary parameters. 2018-05-27 14:05:51 -07:00
1f7294ce29 Add libabacus parameter to function calls. 2018-05-27 00:02:20 -07:00
f4de244c41 Format code. 2018-05-26 21:55:30 -07:00
a6aaa22450 Add calling operators. 2018-05-26 20:43:36 -07:00
280bc60da4 Generalize type checking function in preparation for operators. 2018-05-26 19:27:27 -07:00
a117d7854b Add calling into the interpreter's tree code. 2018-05-26 15:58:06 -07:00
fb55e20e84 Add utilities to reuse common internal function code. 2018-05-26 15:04:28 -07:00
88b32ef58d Add function to call function, instead of function list. 2018-05-26 15:03:57 -07:00
9db667dcdf Fix bugs in the call implementation. 2018-05-22 20:16:06 -07:00
1cd7f3f45a Finish the draft implementation. 2018-05-22 17:45:32 -07:00
070dc179ff Add beginnings of function calling code. 2018-05-22 15:21:10 -07:00
c3a7657c71 Format code. 2018-05-17 14:53:48 -07:00
cf3136a237 Switch values to having their data refcounted separately.
This allows for values to be "cast" and have a different type, while
still referencing the same data.
2018-05-14 17:41:41 -07:00
3e8c814215 Remove pointless parameter copying. 2018-05-11 20:36:27 -07:00
3b0908125d Avoid creating number type reference in interpreter. 2018-05-06 19:01:47 -07:00
c46b82584d Add a new code branch for numbers and void values. 2018-04-24 18:29:17 -07:00
0a24fff344 Add a new implementation struct with only one function. 2018-04-24 16:59:53 -07:00
14e9ddea23 Remove the implementation struct. 2018-04-24 16:34:10 -07:00
4dcf422757 Prevent infinite loop in block interpretation. 2018-04-24 11:47:50 -07:00
a86938b574 Use reference counted table in libab. 2018-04-24 11:35:16 -07:00
251ce4e66e Start the interpreter code. Construct a basic scaffold. 2018-04-23 14:49:33 -07:00