Danila Fedorin
06f17f491c
Move variable setting code into utilities.
2018-09-13 23:57:33 -07:00
Danila Fedorin
ca6075e8d5
Add a new method call operator, and more.
...
The '.' operator now represents method calls. A function f: (a, b)->c
can be called as a.f(b), which is equivalent to f(a, b). Besides
this change, all reserved operators now have a negative precedence
(it's relative, remember?), and some function names were changed.
2018-09-13 17:05:39 -07:00
Danila Fedorin
4425b27b52
Make overloading code a utility function and call from interpreter.
...
This fixes #10 .
2018-09-13 16:09:04 -07:00
Danila Fedorin
37593abe40
Fix GC bug in overloaded functions.
2018-08-14 18:51:00 -07:00
Danila Fedorin
0065fe5e65
Add utility functions to create libab instances on the heap.
2018-08-12 00:46:37 -07:00
Danila Fedorin
59b03d0a94
Fix partial application memory leak.
2018-08-11 20:27:52 -07:00
Danila Fedorin
76ea606099
Finish basic implementation of garbage collection.
2018-08-11 20:01:43 -07:00
Danila Fedorin
f4ecb82c46
Intermediate commit before visitor refactor.
2018-08-11 18:22:18 -07:00
Danila Fedorin
4a058384c1
Make some functions public.
2018-08-10 18:39:26 -07:00
Danila Fedorin
6822c97750
Properly handle placeholder types.
2018-06-17 20:21:40 -07:00
Danila Fedorin
827dba9013
Add the libab prefix to free functions.
2018-06-17 19:43:18 -07:00
Danila Fedorin
f83b7d169c
Resolve function types when they're created.
2018-06-17 19:01:15 -07:00
Danila Fedorin
695fbed235
Put free functions into common header / source file.
2018-06-15 22:54:58 -07:00
Danila Fedorin
9b575916ff
Create a new creation function for new initialization type.
2018-06-02 20:56:30 -07:00
Danila Fedorin
34b97e42ac
Add scopes to functions.
2018-05-28 01:18:06 -07:00
Danila Fedorin
f4de244c41
Format code.
2018-05-26 21:55:30 -07:00
Danila Fedorin
fb55e20e84
Add utilities to reuse common internal function code.
2018-05-26 15:04:28 -07:00
Danila Fedorin
2a1d51ae78
Add additional result types and change some code to use appropriate types.
2018-05-22 13:03:14 -07:00
Danila Fedorin
8a7c18b513
Disallow non-leaf template types.
2018-05-19 13:04:41 -07:00
Danila Fedorin
c3a7657c71
Format code.
2018-05-17 14:53:48 -07:00
Danila Fedorin
47a57d66ee
Remove types from behavior structs.
2018-05-16 15:26:03 -07:00
Danila Fedorin
b96d1804aa
Change the behavior of create_function_list to be consistent.
2018-05-14 20:15:03 -07:00
Danila Fedorin
e7f3a9384e
Add functions to allocate function structs.
2018-05-14 19:17:03 -07:00
Danila Fedorin
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
Danila Fedorin
51e9a11a1f
Add utility function to store a value into a table.
2018-04-26 20:59:12 -07:00
Danila Fedorin
785a362f97
Add a function list that's used for searching functions by name.
2018-04-26 19:40:21 -07:00
Danila Fedorin
735e8715a8
Add a function to create a value reference wrapper.
2018-04-24 15:22:17 -07:00
Danila Fedorin
a86938b574
Use reference counted table in libab.
2018-04-24 11:35:16 -07:00
Danila Fedorin
43a22d7492
Ensure reference is always initialized.
2018-04-22 21:24:43 -07:00
Danila Fedorin
ac26c4dbd0
Add a function to construct and wrap a parsetype in a refcount.
2018-04-22 20:44:30 -07:00
Danila Fedorin
5d3130d39d
Format the code with clang-format.
2018-04-21 14:09:01 -07:00
Danila Fedorin
576f805bd7
Implement resolving basetypes.
2018-04-19 23:17:54 -07:00
Danila Fedorin
45d955b8bd
Add utility functions for copying strings.
2018-03-06 16:45:55 -08:00
Danila Fedorin
74034c7b76
Rename header files.
2018-02-11 22:32:42 -08:00