It is unnecessary, only there to make the parse of the expression explicit.

On 13-04-21 07:06 AM, Programmist Setevik wrote:
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 ?



_______________________________________________
ragel-users mailing list
ragel-users@complang.org
http://www.complang.org/mailman/listinfo/ragel-users


_______________________________________________
ragel-users mailing list
ragel-users@complang.org
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to