

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


The third and final part of the semester project focuses on the actual generation of formatted output from Latex input. There are 5 tasks for this project, with the divisions given to differentiate between required work/point totals and bonuses. Note that you MUST utilize the %union command to redefine the parsing stack in yacc/bison (or an equivalent redefinition in whichever yacc/bison you are using). This project is worth 150 points. The tasks for the project are:
\begin{single} Here is some text before a begin end itemize block.
\begin{itemize} \item One item \item Another item \end{itemize} Here is some more text - does this work? \end{single}
To support this capability, you must carefully alter the grammar production rules. We recom- mend doing this last, since it will likely cause problems and the other parts can be designed, implemented, and tested, without this extension.
All other combinations should result in an error.
has an error in the second entry since four columns are given. Note that the third entry is allowed since there are less columns than specified, so Latex assumes a blank third column for the entry.
Note that you can have multiple versions of your “completed” project. For example, you may have a version that supports Basic and Advanced Text Processing Capabilities and Type-Checking, with a second version containing Verbatim and Nested Blocks enhancements. Points for each task are posted to allow you to maximize the points you receive for the project. The course web site contains a number of important files, including:
WEB PAGE FILES FOR PROJECT, PART 3
latex.l : Common lexical analyzer specification latexp3c.y : Yacc file with nested blocks, WS, and verbatim along with basic code generation conflicts.txt : S/R and R/R Conflicts - Are all OK?
generate.c : Basic routines for formatted text generation util.c : Utility routines
latex.input.txt : Sample input latexout.txt : Generated output for sample (with errors!) latextoc.txt : Generated table of contents for sample
COMPILATION INSTRUCTIONS:
flex latex.l bison latexp3c.y