Skip to content

RangeError: Maximum call stack size exceeded #1432

Answered by zrwsmd
zrwsmd asked this question in Q&A
Discussion options

You must be logged in to vote

if i write like this
entry st:
'PROGRAM' name=Identifier
(defenitions+=Definition)*
(stStatements+=Statement_list)
;
seems have this error

but if i write like
entry st:
'PROGRAM' name=Identifier
(stStatements+=Statement_list)
(defenitions+=Definition)*
;
it works well.
i guess it because * operator represent zero or many match,if it order first,can not decide it number,so report Maximum call stack size exceeded error

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zrwsmd
Comment options

Answer selected by zrwsmd
@msujew
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants