[antlr-interest] matching only first line
cintyram <cintyram at yahoo.com>
cintyram at yahoo.com
Fri Feb 7 08:03:41 PST 2003
hi ,
in the grammar that im writing now, i have a problem,
the syntax of the source file is such that there is a header file
which can be only one line , so a very long line can be spread across
multiple lines by escaping the newline character with \ENTER
exceopt for this line, newline is not used as a delimiter any where
else in the source file!! ;
as of now i am reading the first line in the main file , and parsing
the rest of it in the grammar;
also another soln im trying out is to introduce a new virtual
delimiter in the main file, instead of the first newline, and parse
the whole file in the grammar ;
yeah and also i dont know how to handle the \ENTER so im doing that
also in the main file, replcaeing all such instances with a newline ;
Im sure this is not the right way, but as of now it works ;
suggestions please?
cheers
ram
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list