|Strange behavior of INT [message #1016513]
||Wed, 06 March 2013 17:53
| Robert Brown III
Registered: July 2009
Using the set of rules provided below:
Date : 'Date' ':' d=Day m=Month y=Year ;
Day : INT ;
Month : 'Jan'|'Feb'|'Mar'|'Apr' ;
Year : INT ;
I am seeing some very strange behavior in Day's input. I am noticing that single numbers (like 1 through 9) cause errors in the generated DSL. In other words, the line:
Date: 1 Mar 1912
causes "mismatched input" errors in the DSL.
Another thing that causes "mismatched input" errors is the use of the numbers 11 and 12. No lines can use these numbers at all. This includes lines like:
Date: 12 Mar 1999
Date: 11 Jan 2013
Curiously, the numbers 10 and 13 on up are accepted as INTs.
Something is clearly not kosher here. Could someone please explain how I can make INT take single-digit numbers and the numbers 11 and 12???
Thanks in advance for any insights and/or fixes...
Powered by FUDForum
. Page generated in 0.02842 seconds