Commit Graph

55 Commits

Author SHA1 Message Date
Lewis Van Winkle
860b8ff199 Bug fix on some bad expressions. 2016-06-02 12:09:58 -05:00
Lewis Van Winkle
5e3b8f2ee3 Uses NAN macro if defined. 2016-05-25 12:17:39 -05:00
Lewis Van Winkle
bcd6c85640 Added travis.yml 2016-05-18 12:10:52 -05:00
Lewis Van Winkle
4791163e24 Added additional example and info. 2016-05-05 17:12:02 -05:00
Lewis Van Winkle
cf03962b1c Moved pi and e into functions to allow compile time optimization. 2016-02-26 18:09:44 -06:00
Lewis Van Winkle
8e7c788313 Got optimize working. Added TE_FLAG_PURE. 2016-02-26 17:35:39 -06:00
Lewis Van Winkle
7550e4e309 Refactored closure context storage. 2016-02-25 14:02:44 -06:00
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
a23801c45f More closure tests. 2016-02-24 22:58:19 -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
4f35ab350d Added basic tests for up to 7-ary functions. 2016-02-24 19:28:25 -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
Lewis Van Winkle
ade15f8f89 Removed whitespace in makefile. 2016-02-24 17:33:49 -06:00
Lewis Van Winkle
4e03677a6f Bug fix. 2016-02-24 14:46:16 -06:00
Lewis Van Winkle
09ef420d5b Merge pull request #3 from EvilPudding/master
Added arity greater than 2.
2016-02-24 14:37:51 -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
Lewis Van Winkle
5ad50341ec Additional test cases for name lookup. 2016-02-23 11:21:16 -06:00
Lewis Van Winkle
60d4579de8 Merge pull request #1 from EvilPudding/master
Optimized find_function and find_var.
2016-02-23 10:59:14 -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
df92386cc9 Changed name format. 2016-02-11 14:24:50 -06:00
Lewis Van Winkle
683de28d08 Added additional test cases. 2016-01-26 16:07:31 -06: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
83d1d80209 Couple tweaks. 2016-01-25 10:04:03 -06:00
Lewis Van Winkle
00996e2c25 Added -lm linker flag. 2016-01-24 21:38:06 -06:00
Lewis Van Winkle
dc643905d1 Refactored docs. 2016-01-24 21:19:48 -06:00
Lewis Van Winkle
0dcd120d51 Changed variable names. 2016-01-24 21:02:47 -06:00
Lewis Van Winkle
cd9f6a22cb Changed comment. 2016-01-24 21:00:41 -06:00
Lewis Van Winkle
6e0e01f67b Fixed a couple printf usage errors. 2016-01-24 20:43:49 -06:00
Lewis Van Winkle
00f8febe43 Fixed te_interp free bug. 2016-01-24 20:33:52 -06:00
Lewis Van Winkle
941eb79e77 Removed redundant tests. 2016-01-23 12:38:23 -06:00
Lewis Van Winkle
ef6d187ce1 Added test case for empty string. 2016-01-23 12:36:58 -06:00
Lewis Van Winkle
75952ab5fd Added test cases to insure te_compile returns 0 on error. 2016-01-23 12:13:53 -06:00
Lewis Van Winkle
eea9acf9f6 Add more info for te_interp 2016-01-23 12:10:51 -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
b7af2e3751 Added extern C guards for C++ users. 2016-01-23 11:28:49 -06:00
Lewis Van Winkle
9beeff7f58 Added const in te_eval. 2016-01-21 15:05:10 -06:00