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.
我想绘制一个解析树,如果条件为真,则有多个语句,如果条件为假,则有多个语句。
我知道如何为 1 个陈述画图。
您缺少 a blockor的句法元素,statement-list它可能由多个语句组成,但也可以用作语句。
block
statement-list
在您的图表中,语句将扩展为一个块,然后包含语句。