CSE598/440 Compiler Construction I: Difference between revisions

From esoterum.org
Jump to navigationJump to search
Bdeva (talk | contribs)
No edit summary
No edit summary
Line 6: Line 6:


=== Running Flex and Bison ===
=== Running Flex and Bison ===
*[http://www.gnu.org/software/bison/manual/html_mono/bison.html#FAQ Bison manual page]
<code>
<code>
:> flex adv4.lex
:> flex adv4.lex

Revision as of 00:50, 3 February 2008

Yacc

-semantics

Running Flex and Bison

> flex adv4.lex
[lex.yy.c is created]
> bison -d -o compile.c adv5.y
[compile.c and compile.h are created]
> cc -o compile compile.c lex.yy.c
[compile (compiler) is created]
> compile < toy.al


Project Utils

Course Text:

Cooper, Engineering a Compiler
ISBN: 9781558606982