Re: JLex

"JoAnn Peeler" <jpeeler@tampabay.rr.com>
13 May 2002 01:10:06 -0400

          From comp.compilers

Related articles
JLex zumanoZ@hotmail.com (2002-05-12)
Re: JLex jpeeler@tampabay.rr.com (JoAnn Peeler) (2002-05-13)
JLex anton.vahcic@snet.fri.uni-lj.si (Anton Vahcic, ml.) (1999-05-22)
| List of all articles for this month |
From: "JoAnn Peeler" <jpeeler@tampabay.rr.com>
Newsgroups: comp.compilers
Date: 13 May 2002 01:10:06 -0400
Organization: RoadRunner - TampaBay
References: 02-05-058
Keywords: Java
Posted-Date: 13 May 2002 01:10:03 EDT

"zumano" <zumanoZ@hotmail.com> wrote in message
> I have downloaded JLex and I have a try at its sample lex file. However,
> I found that when I execute the command "java Sample < testing.txt", the
> input is only allowed to be in a single line format and it will give me
> the error "Lexical Error: Unmatched Input".


If you are using JLex on a Windows computer, you will need to add an extra
rule to the JLex script to ignore carriage returns (i.e. "\n"). Otherwise
when it matches this character at the end of a line it will produce the
error message you mentioned.


--
JoAnn Peeler


Post a followup to this message

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