[ragel-users] Reading from stream instead of buffer

Ico ragel at zevv.nl
Sat Apr 18 20:16:59 UTC 2009


* On 2009-04-18 Adrian Thurston <thurston at complang.org> wrote  :

> You can execute on one character at a time.
> 
> while (true)
> {
>      int c = getchar();
>      if ( c == EOF )
>          break;
> 
>      char cv = c;
>      char *p = &cv;
>      char *pe = p + 1;
> 
>      %%write exec;
> }

Ah yes, I figured this out eventually, but I was bitten by using the
wrong alphtype which caused me other troubles.

Thank you,

Ico

-- 
:wq
^X^Cy^K^X^C^C^C^C




More information about the ragel-users mailing list