正在加载图片...
ExprList -> Expr Printstmt - Print ExprList stmt - Printstmt i tmtlist ->stmtlist stmt I Stmtlist FunctionDefn - Type identifier( Formals StmtBlock Decl -> FunctionDe fn Decllist - Decllist Decl Program - Decllist What additional processing would need to be added for a program with a complex expression like void main( int b iba (b+2)-(a*3)/6 Var toi t0=3 Var t1 122 Var t3 t3=b+ t2 Var t4 Var t5; ar t6 Var t7 t5/t6 EndellExprList -> Expr PrintStmt -> Print ( ExprList ) Stmt -> PrintStmt ; StmtList -> StmtList Stmt StmtBlock -> { StmtList } FunctionDefn -> Type identifier ( Formals ) StmtBlock Decl -> FunctionDefn DeclList -> DeclList Decl Program -> DeclList What additional processing would need to be added for a program with a complex expression like: void main() { int b; int a; b = 3; a = 12; a = (b + 2)-(a*3)/6; } main: BeginFuncWithParams; Var b; Var a; Var _t0; _t0 = 3; b = _t0; Var _t1; _t1 = 12; a = _t1; Var _t2; _t2 = 2; Var _t3; _t3 = b + _t2; Var _t4; _t4 = 3; Var _t5; _t5 = a * _t4; Var _t6; _t6 = 6; Var _t7; _t7 = _t5 / _t6; Var _t8; _t8 = _t3 - _t7; a = _t8; EndFunc;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有