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

Adrian Thurston thurston at complang.org
Sun Jun 23 17:42:52 UTC 2013


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 at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
>

_______________________________________________
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