Question: Q1 OCaml match FT 2 Points (MARK A SINGLE ANSWER) Given the following partial parse tree: PT_nt (FT, [PT_nt (mo, [PT_term *]); PT_nt (F,

Q1 OCaml match FT 2 Points (MARK A SINGLE ANSWER) Given the

Q1 OCaml match FT 2 Points (MARK A SINGLE ANSWER) Given the following partial parse tree: PT_nt ("FT", [PT_nt ("mo", [PT_term "*"]); PT_nt ("F", [PT_id "y"]); PT_nt ("FT", []) ]) and the following pattern: PT_nt ("FT", [PT_nt ("mo", [PT_term_mo]); factor; factor_tail]) what will the value of factor_tail be? val factor : parse_tree list = [] val factor : string val factor : parse_tree list [PT_id "y"] val factor : parse_tree = PT_nt ("F", [PT_id "y"]) val factor string val factor parse_tree = PT_nt ("FT", []) O val factor : parse_tree list = [PT_term "*"] val factor : parse_tree = PT_nt ("mo", [PT_term "*"]) O None of the above = = 11*11 "y" =

Step by Step Solution

3.51 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided belo... View full answer

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 Electrical Engineering Questions!