Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#227 Documentation: Multiline patterns are not described

open
Martin Miller
5
2012-10-02
2012-01-26
Clem Wang
No

Multiline patterns are described in the Gnu Flex documentation. Here's a fragment of the example in Gnu Flex:

hi |
bonjour |
hello printf("hello\n");

I cannot seem to find a discussion of multiline patterns in the PDF 0.50.1 version of the Quex manual. From trial and error, I discovered that in Quex you can't have spaces and you need a backslash to escape the continuation lines. (This seems reasonable to me.) The equivalent in Quex would be:

hi|\ bonjour|\ hello { printf("hello\n"); }

You can also have:
define{

GREETING (hi|\ bonjour|\ hello)

}
Please document this behavior. Thanks.

Discussion