20100909

20100909 - containing only `%%'. definitions %% rules %%...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
============================ CS 441 Fall 2010 -- JWJ Pre-class notes - do not distribute Thursday, September 9, 2010 ============================ Scope: Implementing lexical analyzers – flex Programming project - pa1 – an exercise for flex – Java prettyprint -pa2-pa6 – a compiler for a sample, high-level language Outline: Concepts, definitions, tools: tools to generate lexical analyzers lex and flex flex as a part of the development environment The flex input file consists of three sections. They are separated by a line
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: containing only `%%'. definitions %% rules %% user code Examples: structure of a flex specification (input) file building a scanner form a flex specification examples of simple flex programs (C version) demo Links: Flex (The Fast Lexical Analyzer) http://www.gnu.org/software/flex/ http://flex.sourceforge.net/ As a guide to our project (parts 2 and 3), we will use http://www.epaperpress.com/lexandyacc/index.html...
View Full Document

Ask a homework question - tutors are online