Link to home
Start Free TrialLog in
Avatar of wabby26
wabby26

asked on

lex

please explain me shortly how to use lex.
I'm writing a calculator so what I have in my strings are operators and digits and functions with alphanumeric name.

10x alot.
Avatar of jhance
jhance

Entire books (or at least large portions of book) have been written on lex.  Let me suggest the O'Reilly "lex and yacc" book to help you with your homework problem.

http://www.oreilly.com/catalog/lex/
Avatar of wabby26

ASKER

I asked this question just because I don't want to read the whole book inorder to do one simple thing.
Yes, it would be awful if you actually had to learn something in order to do the work.  Maybe some other expert will take pity on you and post a complete tutorial on using lex for 50 pts. but I doubt it.

Avatar of wabby26

ASKER

Many questions like the one I asked have short and clear answers and do not require reading the whole book.
If you save a programmer time by answering his question he can use this time to learn the things that he really needs to know thoroughly.
Do you want to help or to argue?
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial