Hi,

Is it possible to generate a state machine from the code below? I am
getting stuck with using engines before they have been defined and as
far as I can figure out, no matter how I order things this will still
happen.

%%{

  machine adcpState ;

  pressUser = 1;
  insertUsb = 2;
  removeUsb = 3;
        
  Idle = pressUser Recording ;

  MassStorage = removeUsb Idle ;

  Recording = pressUser Idle
             | insertUsb MassStorage
             ;

  main := Idle ;

  write data;

}%%




_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to