[svlug] Lex question about variable length fields

Jesse Monroy jesse650 at gmail.com
Wed May 21 12:57:05 PDT 2014


field separators?

Jesse
 On May 21, 2014 12:44 PM, "Bob Smith" <bsmith at linuxtoys.org> wrote:

> Anyone here remember Lex?
>
> I'm writing a parser in which the end of line can
> have a random ASCII string with spaces, tabs, and
> commas.  What I want is a grammar something like:
>
> command:
>    WORD WORD WORD WORDS_TO_EOL
>    ;
>
> If I build a lex rule to capture the variable
> length string it gobbles the whole input line.
>
> Any suggestions?
>
> thanks
> Bob
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.svlug.org/archives/svlug/attachments/20140521/75cbb273/attachment.htm


More information about the svlug mailing list