Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试识别一个可以产生多个派生树的句子。还从句子中提供两种不同的树
<S> = <A> <A> = <A> + <A> | <B> <B> = a | b | c
ps 我很难找出句子
这看起来像一个问题集问题,所以我不会在这里给出完整的答案。但是,作为提示,请尝试显示该字符串a + a + a具有两个不同的解析树。
a + a + a
希望这可以帮助!