[antlr-interest] Reading contents of file using Antlr

mzukowski at yci.com mzukowski at yci.com
Wed Jan 22 08:26:56 PST 2003


Lexical nondeterminism means you have two lexical rules that are in
conflict, meaning they have the same prefix.  Post a small but complete
example which has the error message and we'll be able to help you.  

Monty


-----Original Message-----
From: Sharon Li [mailto:hushlee83 at yahoo.com.sg]
Sent: Tuesday, January 21, 2003 11:43 PM
To: Antlr Interest Group
Subject: [antlr-interest] Reading contents of file using Antlr


Hi, 
I'm a Java programmer and relatively new to Antlr. I need to write Antlr
code to read in a text file and extract only the necessary information. How
can I go about doing that? An example of the contents of the file might look
like that : 
angle focus : 0.0005
color : blue
line width : 12
I often get the error msg:
warning : lexical nondeterminism upon ...
Also when do we use the TreeParser and what is the different between a
Parser and a TreeParser? When do we define tokens and what is it for ? Pls
help! Thanks very much.
 Yahoo! Travel
- Get the latest travel deals in town! 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list