摘要:
这个语言的一个程序由一个块组成,该块中包含可选的声明和语句。语法符号basic表示基本类型。program –> blockblock –> { decls stmts }decls -> desls decl | εdecl -> type id;type -> type [num] | basicstmts -> stmts stmt | ε把复制当做一个语句(而不是表达式中的运算符)可以简化翻译工作。stmt -> loc=bool; | if(bool) stmt | if(bool) stmt else stmt | while(bool) 阅读全文
posted @ 2014-01-17 19:48
姜楠
阅读(1553)
评论(0)
推荐(0)

浙公网安备 33010602011771号