
Semester Project Overview and Part I – CSE4100 – Fall 2017
Part I Due Dates: 11:59 pm October 4, 11, and 16, 2017
The project for the Fall 2017 Semester will focus on the design and implementation of a Latex
subset for text processing. I recommend that you experiment and learn about Latex using the
MikTex http://miktex.org/ or TeXworkds https://www.tug.org/texworks/ software package.
The semester project will be subdivided into three parts:
Part I: Three tasks on Lexical Analysis and Grammars
1. Design and implement a lexical analyzer using the flex generator on the Linux boxes that is
able to identify all lexical tokens for the latex subset.
2. Design and develop a context free grammar (CFG) for a subset of Latex.
3. Calculate FIRST and FOLLOW for a grammar provided after deliverable Part Ib
Part II: Two tasks on Grammar Analysis and Development
1. Analyze a provided context free grammar in Bison that has a number of shift-reduce and
reduce-reduce errors and rewrite the grammar into a form that removes these errors.
2. Design, implement, and test the common CFG (which we will provide to you after you turn
in Part IIa) using Flex and Bison.
Part III: Three tasks on Syntax Directed Translation
1. Design, implement, and test a syntax-directed translator based on Part II that automatically
generates formatted ASCII text and/or HTML/XML from an input Latex source file for basic
and advanced text processing.
2. Design and implemented very advanced capabilities for nested blocks, full blown verbatim,
and type and error checking
3. Provide documentation in Latex that is run through both MikTex and your Part III solution.
1