You do not have to worry about backtracking and action side effects that may occur with an ambiguous grammar.
你不需要担心一个模糊语法可能的回溯和动作的副作用。
But in truth, my grammar has a lot of problems when it encounters ambiguous phrases.
不过说实话,当遇到含糊的短语时,我的语法会有很多问题。
This grammar is ambiguous; yacc can't figure out what's going on.
该语法是不明确的;所以yacc无法指出接下来将做什么。
If you want to combine languages inside of a file, you have to be sure that the resulting grammar isn't ambiguous, i.e. that for each input there is only one way to interpret it.
如果在同一个文件里混用多种语言,必须保证文法不会出现二义性,也就是说所有的输入都只能存在一种解释。
Grammar is itself an ambiguous pedagogic concept.
语法学本身是一个模糊的教育学概念。
A sentence of a grammar is ambiguous if there exists two syntax trees for it.
如果一文法的句子存在两个语法树,那么该句子是二义性的。
A sentence of a grammar is ambiguous if there exists two syntax trees for it.
如果一文法的句子存在两个语法树,那么该句子是二义性的。
应用推荐