Question: given variant for the abstract syntax of this language. type bop larr I Add Sub I Mul | Div type expr larr Num of number

given variant for the abstract syntax of this language.
type bop larr
I Add
Sub
I Mul
|
Div
type expr larr
Num of number
|
Var of string
|
FuncExpr of string
\times
expr
|
CallExpr of expr
\times
expr
|
BopExpr of expr
\times
bop
\times
expr why is the following the correct answer for c please explain.(c) Formally define the big step semantics of this language.
vinZvvM
?E|--xE(x) VAR
?E+x*t(x*t,E)FuNC
E1|--t1(x*t3,E2),E1|--t2v1,E2[x|v1]|--t3v2E1|--t1t2v2 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 variant for the abstract syntax of this language. type bop

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!