Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
# multiple_state_machine.rl
%%{
  machine hello_and_welcome;
  main := ( 'h' @ { puts "hello world!" } 
          | 'w' @ { puts "welcome" }
          )*;
}%%
  data = 'whwwwwhw'
  %% write data;
  %% write init;
  %% write exec;