Splitting common definitions and actions implementation

Martin Pirker Martin.Pir... at iaik.tugraz.at
Tue Apr 1 14:16:37 UTC 2008


On Mar 31, 6:45 pm, Adrian Thurston <thurs... at cs.queensu.ca> wrote:
> Here's an example of this minus the state references in actions.
> http://code.whytheluckystiff.net/hpricot/browser/trunk/ext/hpricot_scan
>
> The java and c .rl files define actions and then include the common.rl,
> which contains all the machine definitions. You don't need to worry
> about circular dependencies since references to states are resolved
> after all the input (including all included files) is read in.

Thanks, I got stuck yesterday and wondered whether it is possible
at all because of the circular references or the error was mine.
After studying above example I started again from scratch and I can
reproduce a working example now :-)

Thanks again,
  Martin



More information about the ragel-users mailing list