Lex Question

D

David Shin

I was wondering if the following was possible in lex.

Let's say we have the following text:

+
A+B+C

Can we generated a rule that looks at the first delimiter token (+) and
use that delimiter to read the rest of the message? The delimiter can
be dynamic meaning it can also be sent like the following and still be
read using the same rule.

*
A*B*C

Any help would be appreciated. Thanks.
 
K

Keith Thompson

David Shin said:
I was wondering if the following was possible in lex.
[snip]

Sorry, we discuss C here, not lex.

You might try comp.unix.programmer.
 

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
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top