- 博客(5)
- 收藏
- 关注
原创 Simply Syntax
题目描述In the land of Hedonia the official language is Hedonian. A Hedonian professor had noticed that many of her students still did not master the syntax of Hedonian well. Tired of correcting the many syntactical mistakes, she decided to challenge the stud
2023-05-11 15:19:33
102
1
原创 算术表达式文法
已知算术表达式文法G[E]:E → E + T|TT → T * F|FF → ( E )|i判断是否为LL(1)文法;如果是请编写一个递归下降LL(1)分析程序,判断文法G所能接受的串。如果不是转换为LL(1)文法后,编写一个递归下降LL(1)分析程序。Input 输入多行由终止符构成的算术表达式,输入EOF结束。Output 判断每行输入的算术表达式,如果表达式在语法结构上是合法的,输出"syntax correct";否则输出"syntax error"。
2023-05-11 15:16:55
315
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人