[antlr-interest] Resolving ambiguity with dates and division operations
oneway_111
oneway_111 at yahoo.com
Tue Apr 15 17:33:30 PDT 2003
The problem is that the parser needs to be able parse formulas that
could contain math operations and/or operations with dates. The dates
are specified in the format "mm/dd/yyyy" or "mm/dd/yy", e.g.
"04/15/2003".
How would one go about writing rules to be able to distinguish dates
from math expressions containing several division operations, i.e.
04/15/2003 should be April 15, 2003 and not 4 divided by 15 divided by
2003?
Thanks
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list