Optional space between tokens

Aug 13, 2009 at 4:27 PM

Hello,

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?

Thanks,
Zoltan

Coordinator
Aug 13, 2009 at 4: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