[ragel-users] Parsing of names with spaces in them
Gerald Gutierrez
gerald.gutierrez at gmail.com
Mon Jan 23 16:12:30 UTC 2012
On 2012-01-23, at 0:26, Victor Khimenko <khim at chromium.org> wrote:
> The answer is simple: you can't. Ragel generates DFA with actions attached. This means: symbol in => action out.
>
> Your definition is ambigous: when you see a space you have no idea if it belongs to the identifier or not. You must scan ahead and look for the next non-space char: if it's colon then the previous space was not part of the identifier, if it's alnum then it is. This is not something DFA can/should do...
Hi Victor,
There is a chapter in the documentation about nondeterminism. Anything something there that can help in this situation?
Gerald
_______________________________________________
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