integrating ragel w/ bison

Jason jason2... at
Wed Jan 3 21:27:17 UTC 2007


How about
  freturn value;
  fcreturn value; // for a 'C' return

>> How does it work in re2c? Do you just give a C return from the pattern action?
Yes. You create a struct that you pass to your re2c_lex call. Each call
returns the next token.

Would you just make repeated calls to the scanner? i.e. would the state
be such that it just picks up where you left off?

This sort of interface would certainly make yacc/bison much easier!

If you would like me test it out please let me know :-)


More information about the ragel-users mailing list