action ordering. is this a bug?
Chris Pirazzi
cpira... at gmail.com
Mon Feb 19 07:47:25 UTC 2007
Doh! It was a simple operator precedence issue:
tbarz = barz . barz >{ printf(">tbarz\n"); } @{ printf("@tbarz\n"); } $
{ printf("$tbarz\n"); } %{ printf("%%tbarz\n"); };
'>' binds more tightly than '.' so it should be
tbarz = (barz . barz) >{ printf(">tbarz\n"); } @{ printf("@tbarz
\n"); } ${ printf("$tbarz\n"); } %{ printf("%%tbarz\n"); };
and I was printing the start (and other) transitions of the second
barz.
sorry for the noise,
- Chris Pirazzi
More information about the ragel-users
mailing list