I'm currently learning BNF grammar and here is the question:
Modify the following BNF that can be used to process these two strings:
float myVar =5*4.3+2.1
or float mynum= 3.4+7*2.1
Here is my process now:
Exp->??=math
?? -> key + id
math-> multi + multi
multi-> int * multi | float | multi * int
What should I name for the ?? part
Is there a specific name for it?
https://stackoverflow.com/questions/66486178/about-bnf-grammar March 05, 2021 at 11:04AM
没有评论:
发表评论