Commit Graph

251 Commits

Author SHA1 Message Date
9b575916ff Create a new creation function for new initialization type. 2018-06-02 20:56:30 -07:00
cbd57f2585 Add new way to initialize functions. 2018-06-02 20:56:10 -07:00
62dd41e634 Use the unit type correctly instead of null references. 2018-06-02 16:06:13 -07:00
8207f1f450 Add unit value to interpreter. 2018-06-02 15:59:13 -07:00
3fcdd55395 Use unit type in print function. 2018-06-02 15:37:15 -07:00
969e457fba Add a unit type. 2018-06-02 15:37:04 -07:00
b7cc17d394 Remove debug printing. 2018-06-02 15:17:43 -07:00
0db929b7f7 Fix functions remaining allocated after program exit. 2018-06-02 12:42:06 -07:00
6080c3f250 Add a function to print the result of the evaluation. 2018-06-01 23:39:23 -07:00
f199bc6efd Add a function to call a function by name. 2018-06-01 23:32:19 -07:00
c2ec44d83b Create a macro for basic infix operators. 2018-06-01 15:33:45 -07:00
5fec3bd63c Make operators simply aliases to functions. 2018-06-01 15:24:55 -07:00
6cc43449c5 Clear root scope on free to prevent internal function circular refs. 2018-05-31 19:45:36 -07:00
19416d0e15 Add clear functions to table and trie. 2018-05-31 19:29:14 -07:00
34b97e42ac Add scopes to functions. 2018-05-28 01:18:06 -07:00
031e6434c5 Add a new table entry type. 2018-05-27 23:10:59 -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
97fed0b4d1 Use new type functions and abstract reusable code. 2018-05-27 00:12:13 -07:00
1f8788dd32 Add functions for getting special types. 2018-05-27 00:11:00 -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
bbe31be447 Add an interactive test target. 2018-05-23 15:41:17 -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
2a1d51ae78 Add additional result types and change some code to use appropriate types. 2018-05-22 13:03:14 -07:00
680f65d2e6 Add additional functions to ref_vec. 2018-05-22 12:44:15 -07:00
72e143396c Add two utility functions to function_list. 2018-05-20 09:56:24 -07:00
8a7c18b513 Disallow non-leaf template types. 2018-05-19 13:04:41 -07:00
a6029d7ef4 Add utility function for executing code. 2018-05-18 14:15:15 -07:00
03cce8d1fb Clean up some comments. 2018-05-17 15:33:38 -07:00
c3a7657c71 Format code. 2018-05-17 14:53:48 -07:00
97543a3d19 Remove unused nesting in behavior struct. 2018-05-16 23:10:33 -07:00
325c9b9ef7 Add a type specifically to operators. 2018-05-16 15:30:29 -07:00
47a57d66ee Remove types from behavior structs. 2018-05-16 15:26:03 -07:00
48f8d09405 Make table searching functions public to prevent their duplication. 2018-05-16 14:05:35 -07:00
70e0e75d24 Switch to using values for storing function entries. 2018-05-14 21:32:36 -07:00
b96d1804aa Change the behavior of create_function_list to be consistent. 2018-05-14 20:15:03 -07:00
e7f3a9384e Add functions to allocate function structs. 2018-05-14 19:17:03 -07:00
85f88b909b Add a swap function that swaps contents of references. 2018-05-14 19:16:42 -07:00
df50579b5c Make refcounted returns move consistent. 2018-05-14 18:34:30 -07:00
c3f413d087 Fix bug in parser causing additional frees. 2018-05-14 17:46:11 -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