Commit Graph

9 Commits

Author SHA1 Message Date
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 20fb078ad2 Change assignment behavior to update existing table entries. 2018-08-10 19:56:46 -07:00
Danila Fedorin 0a21c7fdf7 Add logical and and logical or operators. 2018-08-10 18:40:31 -07:00
Danila Fedorin aebba42196 Use the new public functions. 2018-08-10 18:40:21 -07:00
Danila Fedorin 48300cd86e Implement reserved operators. 2018-06-21 19:00:45 -07:00
Danila Fedorin 5d3130d39d Format the code with clang-format. 2018-04-21 14:09:01 -07:00
Danila Fedorin 27acfb0be7 Register reserved operators as tokens. 2018-03-16 23:09:11 -07:00
Danila Fedorin d25c1a379a Add function to search for reserved operators. 2018-03-16 22:11:48 -07:00