Commit Graph

33 Commits

Author SHA1 Message Date
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
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
3e8c814215 Remove pointless parameter copying. 2018-05-11 20:36:27 -07:00
989774cec5 Add methods to get pointers to basetypes, for comparison. 2018-05-11 20:12:03 -07:00
8253cd1f69 Add initialization functions for operators and functions. 2018-05-09 15:05:40 -07:00
3b0908125d Avoid creating number type reference in interpreter. 2018-05-06 19:01:47 -07:00
1e215ecfa5 Add a function for preparing for execution. 2018-05-06 18:45:07 -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
46040531fb Add interpreter to libab. 2018-04-24 11:35:27 -07:00
a86938b574 Use reference counted table in libab. 2018-04-24 11:35:16 -07:00
5d3130d39d Format the code with clang-format. 2018-04-21 14:09:01 -07:00
30578f27da Take precompiled type in register functions. User must call create_type. 2018-04-20 14:54:58 -07:00
7692d4541f Add function to compile a type from its string. 2018-04-20 14:54:23 -07:00
8214aa8344 Allow tree-based function implementations. 2018-04-20 09:26:18 -07:00
3ada78a557 Use reference counting for types. 2018-04-17 22:14:28 -07:00
7b1445a262 Add functions for basetypes and their entries in tables. 2018-04-17 12:07:22 -07:00
9500a6f9b0 Make a single "operator" token, and specialize after parse. 2018-03-17 20:56:25 -07:00
6b438dbc6d Store the operator type in the corresponding table entry. 2018-03-17 17:38:13 -07:00
27acfb0be7 Register reserved operators as tokens. 2018-03-16 23:09:11 -07:00
ab2311def9 Store function / operator types when they are registered. 2018-03-15 19:41:11 -07:00
52ac67026f Remove function tokens. If functions are first class, they're variables. 2018-02-25 14:12:34 -08:00
7a84babf1e Add basic function call parsing. 2018-02-24 20:08:17 -08:00
a3e1fdd46e Clean up code in places suggested by static analysis. 2018-02-21 19:06:00 -08:00
71f7711f92 Add sanitization of operators. 2018-02-17 20:31:30 -08:00
b1aa2a4bf5 Implement associativity storage for operators. 2018-02-17 16:00:39 -08:00
8cd1d23120 Add functions to separately register different types of operators. 2018-02-17 14:01:48 -08:00
8b13b9a735 Implement functions to register operators and functions into libabacus. 2018-02-11 22:50:44 -08:00
f67b98d7a6 Add a parser struct. 2018-02-11 22:26:19 -08:00
37a6f31b5f Start the overarching library code, and move result enum elsewhere. 2018-02-11 22:11:33 -08:00