retFsm = factorWithRep->walk( pd );
if ( retFsm->startState->isFinState() ) {
warning(loc) << "applying plus operator to a machine that "
- "accpets zero length word" << endl;
+ "accepts zero length word" << endl;
}
/* Need a duplicated for the star end. */
if ( star ) {
if ( rtnVal->startState->isFinState() ) {
warning(loc) << "applying kleene star to a machine that "
- "accpets zero length word" << endl;
+ "accepts zero length word" << endl;
}
rtnVal->starOp();
main := (
m1 %{printf("accept m1\n");} |
"" %{printf("enter m2\n");} |
- m2 >{printf("enter m2\n");} %{printf("accpet m2\n");}
+ m2 >{printf("enter m2\n");} %{printf("accept m2\n");}
) . '\n';
}%%
ACCEPT
enter m2
enter m2
-accpet m2
+accept m2
ACCEPT
enter m1 aa
enter m1 aa
through m1 b
enter m2
accept m1
-accpet m2
+accept m2
ACCEPT
enter m1 aa
enter m2