Commit Graph

26 Commits

Author SHA1 Message Date
Lewis Van Winkle
a44620f187 Context for closures is now stored separately for each closure. 2016-02-25 13:34:58 -06:00
Lewis Van Winkle
04134389f2 Closure bug fix. 2016-02-24 22:56:57 -06:00
Lewis Van Winkle
b24086b376 Added closures. Refactoring. 2016-02-24 22:26:54 -06:00
Lewis Van Winkle
75daaf891a Refactoring. 2016-02-24 19:02:19 -06:00
Lewis Van Winkle
db29d5ad73 Removed unused mask. 2016-02-24 18:45:35 -06:00
Lewis Van Winkle
fc3cee3fb1 Refactoring. 2016-02-24 18:45:00 -06:00
EvilPudding
8a8fe5ba4f Merge branch 'dynfunc' of https://github.com/codeplea/tinyexpr 2016-02-24 20:19:05 +00:00
EvilPudding
bda6fa9d30 Fixed memory leaks and uninitialized values. 2016-02-24 20:15:47 +00:00
Lewis Van Winkle
31782a849f Bug fix in list grammar. 2016-02-24 13:52:42 -06:00
EvilPudding
0417ed63a8 Added arity greater than 2, and test cases. 2016-02-24 17:46:54 +00:00
Lewis Van Winkle
3f1d5d2553 Renamed find functions for clarity. 2016-02-23 17:36:15 -06:00
Lewis Van Winkle
681fb9aa0f Allow empty parens for function0. 2016-02-23 17:29:03 -06:00
Lewis Van Winkle
d9138d4bff Added ability for dynamic functions. 2016-02-23 17:13:11 -06:00
Lewis Van Winkle
52a4995d6c Added comma operator, builtin functions of arity 0 and 2. 2016-02-23 15:18:44 -06:00
EvilPudding
682e9c1b34 Fixed possible segmentation fault. 2016-02-23 15:24:12 +00:00
EvilPudding
60a852a1a3 Optimized find_var 2016-02-23 15:18:39 +00:00
EvilPudding
3e8fc56209 Optimized find_function 2016-02-23 14:59:04 +00:00
Lewis Van Winkle
11b8e0e647 Using fmod function for modulus. 2016-01-26 14:02:19 -06:00
Lewis Van Winkle
8c7839ef23 Fixed case of NaN input to modulus. 2016-01-26 13:37:57 -06:00
Lewis Van Winkle
4e60574efc Fixed case of X%0 to return NaN. 2016-01-26 13:31:43 -06:00
Lewis Van Winkle
0dcd120d51 Changed variable names. 2016-01-24 21:02:47 -06:00
Lewis Van Winkle
00f8febe43 Fixed te_interp free bug. 2016-01-24 20:33:52 -06:00
Lewis Van Winkle
1ee637afef Changed error handling a bit. te_interp returns NaN for bad expressions. 2016-01-23 12:09:38 -06:00
Lewis Van Winkle
9beeff7f58 Added const in te_eval. 2016-01-21 15:05:10 -06:00
Lewis Van Winkle
1384e5bbdf Refactored print function 2016-01-21 14:42:07 -06:00
Lewis Van Winkle
ec3dde1e24 Initial commit 2016-01-21 14:36:59 -06:00