Back to category: Technology

Limited version - please login or register to view the entire paper.

Language design & implementation

1. After examining through the piece of code which was given to me I would start the standard definition of the language. Seeing as I know little about the language I assume that the syntax is helpful. Seeing as these statements are context free I would do prototypes to see if it is functioning properly and if it isn’t I’ll be able to see what is needed to be corrected and edited in order for it to function properly.

2. The starting symbol for this piece of Pascal program is: . The reason why I know this is because the starting symbol is always shown on the left and only the left side.

The non-terminals of the code are: , , and . We know this because all the non-terminals are sown inside angled brackets (<>). The non-terminals do not appear in statements, which is why they are shown in angled brackets. The terminals for the program are: =, ;, +, (, ), x, y and z.

3. The operation of the syntax analyser is t...

Posted by: Rheannon Androckitis

Limited version - please login or register to view the entire paper.