newbie help : lexer in c

V

vaib

hi to all . this may seem quite out of place . i've opted for building
a lexical analyzer using c for my summer project . i know the required
automata theory and i know c too . i've also read the 'lex and yacc'
and now i'm stuck and i'm still not able to figure out how to go about
starting the coding part or where to begin it .i would highly
appreciate if any of you expert out there could write me a simple plan
or algorithm that i should follow for this project . also if you any
good book or internet resource that can help me in designing a lexer ,
it would be very helpful . thanking all in anticipation.
vaibhav.
 
W

weidongtom

hi to all . this may seem quite out of place . i've opted for building
a lexical analyzer using c for my summer project . i know the required
automata theory and i know c too . i've also read the 'lex and yacc'
and now i'm stuck and i'm still not able to figure out how to go about
starting the coding part or where to begin it .i would highly
appreciate if any of you expert out there could write me a simple plan
or algorithm that i should follow for this project . also if you any
good book or internet resource that can help me in designing a lexer ,
it would be very helpful . thanking all in anticipation.
vaibhav.

Try this if you need more theory:
http://www.cs.vu.nl/~dick/PTAPG.html

If you want to see some code in action, try the
Compilers and Compiler Generators, an Introduction with C++
by P.D. Terry, from
http://www.scifac.ru.ac.za/compilers/

Hope you'll find it helpful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,292
Messages
2,571,495
Members
48,185
Latest member
abhaysingh01

Latest Threads

Top