Stephen Dolan
|
4c7bede5a4
|
Better error handling and messages for invalid index/assign operations.
|
2012-09-11 10:37:44 +01:00 |
|
Stephen Dolan
|
95dd64b0f0
|
Much, much better error reporting from the parser.
Getting proper locations through flex/bison was more effort than
was advertised.
|
2012-09-11 00:04:47 +01:00 |
|
Stephen Dolan
|
e718bd50b6
|
Sensible error messages when a silly addition is performed.
Fix a test to no longer perform an invalid addition.
|
2012-09-10 16:15:05 +01:00 |
|
Stephen Dolan
|
649cac791a
|
Make jv_invalid() first-class values capable of holding an error.
|
2012-09-10 15:04:19 +01:00 |
|
Stephen Dolan
|
c2593dc417
|
Make a main program that doesn't spam debugging info.
|
2012-09-10 10:23:15 +01:00 |
|
Stephen Dolan
|
5add2c2ceb
|
if-then-else and defined-or operators
|
2012-09-04 15:34:34 +01:00 |
|
Stephen Dolan
|
520c7bb15e
|
Fix some confusion between "null" and "invalid".
|
2012-09-03 17:26:52 +01:00 |
|
Stephen Dolan
|
a8c3648ca5
|
JV_KIND_INVALID values to represent failed lookups, etc + various tests.
|
2012-09-03 16:16:14 +01:00 |
|
Stephen Dolan
|
8fe9c8a22a
|
Make assignment work again: = and |= operators.
|
2012-09-03 15:33:59 +01:00 |
|
Stephen Dolan
|
e3710c0d1f
|
Fix behaviour of stack at program termination.
|
2012-09-02 22:11:06 +01:00 |
|
Stephen Dolan
|
4f747e6fff
|
Move from Jansson to JV - proper freeing of memory
A few more tests, now passes valgrind.
|
2012-09-02 21:45:52 +01:00 |
|
Stephen Dolan
|
f72c5ffac0
|
Move from Jansson to JV - interpreter loop
Passes tests, but leaks some memory.
|
2012-09-02 17:20:13 +01:00 |
|
Stephen Dolan
|
f25cb16e6b
|
Fix a bug in lexical scoping, add tests
|
2012-08-28 18:38:30 +01:00 |
|
Stephen Dolan
|
dc6cf2fb58
|
Remove syntax distinction between builtin and user calls
|
2012-08-27 11:19:42 +01:00 |
|
Stephen Dolan
|
6c8b55793a
|
first pass at assignment
|
2012-08-27 10:12:02 +01:00 |
|
Stephen Dolan
|
a847d2250f
|
2nd order functions
|
2012-08-26 14:25:56 +01:00 |
|
Stephen Dolan
|
2086e59ab1
|
bugfix for backtracking over RET insns, and a truly evil testcase
|
2012-08-22 19:05:53 +01:00 |
|
Stephen Dolan
|
79d81f4bee
|
Closures over variables
|
2012-08-21 18:24:38 +01:00 |
|
Stephen Dolan
|
c128c2029e
|
First pass at functions + tests
|
2012-08-21 18:14:13 +01:00 |
|
Stephen Dolan
|
dd0d340eba
|
frame layout refactor
|
2012-08-21 12:35:44 +01:00 |
|
Stephen
|
fd738bface
|
an addition operator, of sorts
|
2012-08-16 01:16:08 +01:00 |
|
Stephen
|
2002dc1a2f
|
Most of a C implementation of jq
|
2012-08-16 01:00:30 +01:00 |
|