summaryrefslogtreecommitdiff
path: root/test/order1.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-04-13 10:39:14 -0400
committerAdrian Thurston <thurston@complang.org>2013-04-13 10:39:14 -0400
commite0cc080f94de6764b2eae8ef3815882316ebb922 (patch)
treec51ca85e930c4d2028eb6254fe982660c6a072a5 /test/order1.lm
parent911f6dba5d5da289a1ed43ac6cc7171f7dcdc48e (diff)
downloadcolm-e0cc080f94de6764b2eae8ef3815882316ebb922.tar.gz
parse expression returns the tree type, added 'error' global
Reverted back to the original semantics of the parse expression, where the parser object is a temporary and the tree is returned. It is inconsistent form to use: parse Label: type [input] and have Label be of something other than 'type'. Added a global variable called 'error', which stores the error of the most recently executed parse statement. This lets us have the better semantics for the concise parse expression, and be able to get at the error.
Diffstat (limited to 'test/order1.lm')
0 files changed, 0 insertions, 0 deletions