Your cart is currently empty!
Problem Write a Parser for the source language that you have chosen. The output of the parser must print the rightmost derivation of the input program in a nicely formatted html file. The non-terminal being expanded must be marked in a different color/bold-faced/underlined etc. to make it easy to follow the derivation. One of…
Problem
Write a Parser for the source language that you have chosen. The output of the parser must print the rightmost derivation of the input program in a nicely formatted html file. The non-terminal being expanded must be marked in a different color/bold-faced/underlined etc. to make it easy to follow the derivation. One of the ways to build the assignment is to first generate the rightmost derivation in reverse and then use the “ tac” command to reverse the file.
Details
– the source of the implementation (in a folder called “src” within “asgn3”;
– a Makefile to build the implementation (it should generate an executable called “parser” in the folder
“asgn3/bin”;
– a set of at least 5 test cases that you have used to check your implementation (in a folder “asgn3/test”);
– a README file with a brief description for building and running it (within “asgn3”).
Binaries should NOT be part of the submission. Clean the folder of all object and executable files before submission.
– cd asgn3
– make
– bin/parser test/test1.c (to execute the first test-case file test1.c)
– firefox test1.html
1