[ragel-users] Basic question on use of grouping in Ragel

Programmist Setevik programmist.setevik at gmail.com
Sun Apr 21 11:06:48 UTC 2013


Reading through Ragel guide, I see examples like this one:

# Match a word followed by a newline. Execute A when
# finishing the word.
main :=* (* lower+ %A *)* . '\n';

Question I have is: why is grouping used here ? Could this be written
simply as

main :=* * lower+ %A  . '\n';

And if not, what would be the difference ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20130421/57939613/attachment-0001.html>
-------------- next part --------------
_______________________________________________
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