Programmist Setevik
2013-04-21 11:06:48 UTC
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.complang.org/pipermail/ragel-users/attachments/20130421/57939613/attachment.html>
# 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.complang.org/pipermail/ragel-users/attachments/20130421/57939613/attachment.html>