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 will be appreciated. Thanks.
 

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

Staff online

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top