Related articles |
---|
reg expr for list of strings shoaib@students.cs.mu.OZ.AU (Shoaib Ali BURQ) (2002-09-03) |
From: | "Shoaib Ali BURQ" <shoaib@students.cs.mu.OZ.AU> |
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
str=\"[^\"\n]*\"
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
thanks
------------------------
Shoaib Burq
http://www.cs.mu.oz.au/~shoaib
[Your pattern doesn't match white space between strings. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.