Question: Question 3: (a) Complete the semantic rules below for Roman numerals, given that (z100, 1=50, x=10, v-5, 1, and symbol values are added except: 1

 Question 3: (a) Complete the semantic rules below for Roman numerals,

Question 3: (a) Complete the semantic rules below for Roman numerals, given that (z100, 1=50, x=10, v-5, 1, and symbol values are added except: 1 before v or x indicates one less (e.g., iv is 4) and x before 1 or c indicates ten less (e.g. xc is 90). Use the rules to evaluate xcvii, showing all the steps. (3 marks) ) 0 = (b) The above grammar allows illegal forms such as xiiii or xxxxx. Add the necessary attribute/s, semantic rule/s, and predicate/s to ensure that generated sentences contain groups of at most 3 i or 3 x. Draw a synthetized, decorated parse tree showing that 1viii is not a valid Roman numeral. (4 marks)

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!