[ragel-users] Ignoring whitespace
Michael Conrad
silverdirk-rgl at silverdirk.com
Fri Apr 12 13:55:24 UTC 2013
On 04/09/2013 07:30 PM, Tom Harris wrote:
> What I am having trouble with is so simple, I just want to ignore
> whitespace, so whitespace may serve to seperate symbols. Is there an
> easy way to do this, other than just adding space* all over the grammar?
>
You can always pre-process your buffer, converting all runs of
whitespace to a single space character. That will make the required
machine smaller. Written in C, it might even be a speed improvement.
-Mike
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list