You will be implementing the BL_Tokenizing_Machine_Kernel component using the representation and the algorithm described in class.
The set up instructions will provide you with a user catalog containing the following components and auxiliary items:
To use a demonstration version of the test driver, just execute the command 321_Tokenizing_Machine_Demo < BL_Source_Program, where BL_Source_Program is any (possibly incorrect) BL source program.
Once you are done with your implementation of the BL_Tokenizing_Machine, you will have built all of the pieces used by the BL translator. After submitting your solution to the lab, if you would like to assemble your own version of the translator using all your implementations, simply copy the following components to your lab5 catalog and build the project.From the lab2-part2 user catalog copy your implementation of Statement_Kernel:
cp -r /class/sce/now/321/labs/catalogs/lab5 /project/c321axnn
cd /project/c321axnn/lab5 chmod -R g-l,g+rwX . set-group-ID .
PROGRAM Test IS
BEGIN # this is a test
WHILE true DO
infect
END WHILE
END Test
the test driver's output should be:
Running the test case . . .
TOKEN KIND TOKEN TEXT
---------- ----------
KEYWORD <PROGRAM>
WHITE_SPACE < >
IDENTIFIER <Test>
WHITE_SPACE < >
KEYWORD <IS>
WHITE_SPACE <
>
KEYWORD <BEGIN>
WHITE_SPACE < >
COMMENT <# this is a test>
WHITE_SPACE <
>
KEYWORD <WHILE>
WHITE_SPACE < >
CONDITION <true>
WHITE_SPACE < >
KEYWORD <DO>
WHITE_SPACE <
>
IDENTIFIER <infect>
WHITE_SPACE <
>
KEYWORD <END>
WHITE_SPACE < >
KEYWORD <WHILE>
WHITE_SPACE <
>
KEYWORD <END>
WHITE_SPACE < >
IDENTIFIER <Test>
WHITE_SPACE <
>
Test case completed.
rcpp-submit c321?? lab5If you get an error message rather than a confirmation of success, please read the message; it contains useful information! Do not just run the same command again. Save the e-mail you get as a receipt of submission, just in case.