reg expr for list of strings

"Shoaib Ali BURQ" <>
3 Sep 2002 00:17:00 -0400

          From comp.compilers

Related articles
reg expr for list of strings (Shoaib Ali BURQ) (2002-09-03)
| List of all articles for this month |

From: "Shoaib Ali BURQ" <>
Newsgroups: comp.compilers
Date: 3 Sep 2002 00:17:00 -0400
Organization: Computer Science, University of Melbourne
Keywords: lex, question
Posted-Date: 03 Sep 2002 00:17:00 EDT

Hi everyone,

I'm writing a lexer using JLex. I need to read a list of string as a
SINGLE token:

for example:
"inter_bioscreen_s" "inter_bioscreen_n" "inter_bioscreen_n_300"

a sequence like this should be a single token. i defined a string as

but when i use {str}+ it doesn't do what i expect, ie. read one or more
sequence of strings

Any suggestions would be great

Shoaib Burq
[Your pattern doesn't match white space between strings. -John]

Post a followup to this message

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