Fix parser for empty argument lists
This commit is contained in:
parent
156edc2f09
commit
5d9932637d
1 changed files with 6 additions and 3 deletions
|
@ -145,9 +145,12 @@ parser's debug output.")
|
|||
(setf name (match-syntax primary))
|
||||
(cond ((and (typep name 'token-name)
|
||||
(match-token 'token-open-paren))
|
||||
(setf arguments (match-syntax arglist))
|
||||
(consume-token 'token-close-paren
|
||||
"Close parenthesis ')' is required to end function call argument list.")
|
||||
(cond ((match-token 'token-close-paren)
|
||||
(setf arguments '()))
|
||||
(t
|
||||
(setf arguments (match-syntax arglist))
|
||||
(consume-token 'token-close-paren
|
||||
"Close parenthesis ')' is required to end function call argument list.")))
|
||||
(make-instance 'node-call
|
||||
:source *syntax-source*
|
||||
:comment *token-comment*
|
||||
|
|
Loading…
Add table
Reference in a new issue