[ragel-users] Rule skipped.
Adrian Thurston
thurston at complang.org
Fri Mar 8 03:20:16 UTC 2013
I'm not sure why that might be happening. I'm not able to reproduce the
behaviour. Can you post the complete program?
-Adrian
On 13-03-04 09:34 AM, Alessio Giovanni Baroni wrote:
> Hi to all,
>
> I have the following definitions:
>
> %%{
>
> machine oolang_lexer;
>
> alphtype unsigned char;
>
> main := |*
>
> (0x01 .. 0x20)+ => { cout << "foo" << endl; };
>
> [a-zA-Z_][a-zA-Z0-9_]* => {
> tok = IDENTIFIER;
> yylval = string (ts, te - ts).c_str ();
> fbreak;
> };
>
> *|;
>
> }%%
>
> If the input contains "abc def", the readed token is "abcdef" without
> space, but it never print
> "foo" on terminal. Why? I don't know .....
>
> Thanks.
>
>
> _______________________________________________
> 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