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@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