summaryrefslogtreecommitdiff
path: root/module/language/lua/parser.scm
diff options
context:
space:
mode:
authorPhil <theseaisinhere+git@gmail.com>2011-05-07 16:15:11 -0500
committerIan Price <ianprice90@googlemail.com>2013-09-09 17:01:24 +0100
commitf4c44a3ba7f88e8171e1e2bd14b82d00b5912977 (patch)
tree53895bbda10c0c7771e3f82261dbd4acb75877c4 /module/language/lua/parser.scm
parentfaa16f99898a329eba0eaff0ab520eb0f9adbecb (diff)
downloadguile-f4c44a3ba7f88e8171e1e2bd14b82d00b5912977.tar.gz
Add some documentation. Function calls now properly handle multiple
values resulting from a function call as the last argument. doc/ref/api-languages.texi: Add a small blurb about Lua. module/language/lua/compile-tree-il.scm: Function calls now properly handle multiple values resulting from a function call as the last argument.
Diffstat (limited to 'module/language/lua/parser.scm')
-rw-r--r--module/language/lua/parser.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/language/lua/parser.scm b/module/language/lua/parser.scm
index b602d20ab..dbe73f66f 100644
--- a/module/language/lua/parser.scm
+++ b/module/language/lua/parser.scm
@@ -351,7 +351,7 @@
(enforce-next! #\))
;; finished
save))
- (else (syntax-error (get-source-info) "unexpected symbol ~a" token))))
+ (else (syntax-error (get-source-info) "unexpected token ~a" token))))
;; index -> '[' expression ']'
(define (index)
@@ -598,7 +598,6 @@
;; FIXME: does a left-to-right assignment, so x, y = y, x probably
;; doesn't work. Also does not appear to handle the x, y = foo() case.
- ;;
(define (parse-assignment src left right)
;; and then parses it, branching to handle overflows on either side if necessary
(make-ast-sequence