lex question

Mina Doroudi <dormina@winnipeg-lnx.cc.gatech.edu>
2 Dec 2005 20:23:46 -0500

          From comp.compilers

Related articles
lex question dormina@winnipeg-lnx.cc.gatech.edu (Mina Doroudi) (2005-12-02)
Re: lex question nathan.moore@cox.net (Nathan Moore) (2005-12-08)
Re: lex question toby@telegraphics.com.au (toby) (2005-12-08)
lex question alinares@fivetech.com (Antonio Linares) (1999-03-23)
Re: lex question adobni@itron.com.ar (Alejandro Dobniewski) (1999-03-28)
Re: lex question rkrayhawk@aol.com (1999-04-01)
Re: lex question cfc@world.std.com (Chris F Clark) (1999-04-03)
| List of all articles for this month |

From: Mina Doroudi <dormina@winnipeg-lnx.cc.gatech.edu>
Newsgroups: comp.compilers
Date: 2 Dec 2005 20:23:46 -0500
Organization: College of Computing, Georgia Tech
Keywords: lex, question
Posted-Date: 02 Dec 2005 20:23:46 EST

I am writing a parser with lex. I have some problems:
In the definition section I define a whole bunch of stuff and I also
used them to define other things.
So I have
X [something]
and I want Y to be anything but X so when I define it like:
Y [^{X}] it only exclude the characters '{' , '}' ,and X
I can't find a way to exclude the definitions and use them in
other definitions.

Also I'm trying to set rules for Oct, but lex doesn't let me logical ORs them
together. and I can't do ranging either ([\001-\006])
any Idea how to parse text with Oct?


-Mina Doroudi (dormina@cc.gatech.edu)

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.