[ragel-users] Parsing of names with spaces in them

Gerald Gutierrez gerald.gutierrez at gmail.com
Mon Jan 23 17:16:46 UTC 2012


On Mon, Jan 23, 2012 at 08:31, Victor Khimenko <khim at chromium.org> wrote:

>> Hi Victor,
>>
>> There is a chapter in the documentation about nondeterminism. Anything
>> something there that can help in this situation?
>>
> No. The task (as you've formulated it) principally can not be solved using
> your definition: to know if identifier is finished or not you need unlimited
> lookahead or backtracking.

I understand. What I've done instead is to match on [^:]* and qualify
the content of the name in code. This doesn't seem like the best way,
but is clean enough to work with for the time being.

_______________________________________________
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