-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can max depth >20? #211
Comments
Hi @Roise-yue ! I'm sorry for the late reply. The generator must not get stuck or crash when setting the recursion limit to ~20 or so. Crash usually happens if depth is not set (especially if there is recursion in the grammar) and Python reaches the system recursion limit (which can be raised with the The empty output files are probably the result of the grammar. If you use the official C grammar from grammars-v4, then the start rule is: compilationUnit
: translationUnit? EOF
; which means that there is 50% percent of generating
This cannot happen, since Grammarinator will increase maximum depth to the minimal value needed to finish the generation.
It was some time ago, but AFAIK it contained:
|
Thank you very much for your reply. As I did not use the tool later and did not follow your messages in a timely manner, I still appreciate your detailed answer. |
When I was using this tool, I found that when the maximum depth is greater than 20, the program will crash (the tool will get stuck), so I would like to ask, what is the maximum depth setting that cannot exceed? In addition, when generating C language programs using C grammar, I found that some result files are empty. I would like to ask if it is because I set the maximum depth to 20, and when the syntax rules are derived to the 20th layer, they have not yet reached the non-terminal.
I would like to reproduce the entire process of testing Jerryscript in your paper. Could you please guide me on the replication process?
The text was updated successfully, but these errors were encountered: