%%{
machine awkemu;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
# Starts a line. Will initialize all the data necessary for capturing the line.
action startline {
%%{
machine builtin;
alphtype unsigned int;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
main := (
any @{alph("any");} |
machine fsm;
alphtype int;
getkey fpc->key;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
action a1 {}
action a2 {}
%%{
machine erract;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
# The data that is to go into the fsm structure.
action hello_fails { printf("hello fails\n");}
%%{
machine errintrans;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
char = any - (digit | '\n');
line = char* "\n";
%%{
machine forder;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
second = 'b'
>{printf("enter b1\n");}
%%{
machine forder;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
inner = 'inner'
>{printf("enter inner\n");}
%%{
machine forder;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
m1 = ( "" %{printf("enter m1 aa\n");} |
'aa'* >{printf("enter m1 aa\n");} %{printf("leave m1 aa\n");} )
%%{
machine high;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
# We Want the header portion.
alphtype unsigned int;
%%{
machine tokenizer;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
action bufdigit {
if ( numlen < 8 )
%%{
machine min;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
action a_or_b { printf("a or b\n"); }
%%{
machine range;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
main := ( 'a' .. 'c' | 'c' .. 'e' | 'm' .. 'n' | 'a' .. 'z' ) '\n';
}%%
%%{
machine state_chart;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
action a { printf("a"); }
action b { printf("b"); }
%%{
machine strs;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
main :=
"__gmon_start__\n" |
%%{
machine strs;
- variable curstate fsm->cs;
+ variable cs fsm->cs;
main :=
"/lib/ld-linux.so.2\n" |