Question: Given the following why is ( c ) correct please explain the green answer to c ( b ) Write a variant for the abstract

Given the following why is (c) correct please explain the green answer to c
(b) Write a variant for the abstract syntax of this language.
type bop larr
I Add
I Sub
| Mul
I Div
type expr larr
| Num of number
| Var of string
FuncExpr of string expr
| CallExpr of expr expr
I BopExpr of expr bop expr
(c) Formally define the big step semantics of this language.
vinZvvM
?E+xE(x) VAR
?E|--x*tdarr(x*t,E)FuNC
E1|--t1(x*t3,E2),E1|--t2v1,E2[x|v1]|--t3v2E1|--t1,t2v2 CALL
E|--t1v1,E|--t1v2E|--t1+t2v1+v2ADD
E|---t1v1,E|---t1v2E|---t1-t2v1-v2SUB
E|---t1v1,E|---t1v2E|--t1**t2v1**v2?MUL
E|---t1v1,E|--t1v2E|--t1t2v1v2 DIV
 Given the following why is (c) correct please explain the green

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!