This project has moved. For the latest updates, please go here.

Optional space between tokens

Aug 13, 2009 at 5:27 PM


I have a rule:

WaitStatement.Rule = _wait_ + Expression + (_ms_ | _sec_ | _min_ | _hour_);

In older version of Irony I can parse the following: "wait 10ms".
In the latest version this caused parsing error:
"Number cannot be followed by a letter".
The "wait 10 ms" parsed okay in both.
How can I enable parsing without the required space?


Aug 13, 2009 at 5:36 PM

There's a new flag for number literal, smth like AllowLetterAfter, it is not set by default, because normally it is an error. You should set this explicitly when you create NumberLiteral