Typo fix from Andrei Polushin.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Sun, 13 Apr 2008 22:12:19 +0000 (22:12 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Sun, 13 Apr 2008 22:12:19 +0000 (22:12 +0000)
git-svn-id: http://svn.complang.org/ragel/trunk@431 052ea7fc-9027-0410-9066-f65837a77df0

ragel/parsetree.cpp
test/forder3.rl

index 6a97a28..443c565 100644 (file)
@@ -1439,7 +1439,7 @@ FsmAp *FactorWithRep::walk( ParseData *pd )
                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. */
@@ -2012,7 +2012,7 @@ FsmAp *ReItem::walk( ParseData *pd, RegExpr *rootRegex )
        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();
index 55daf18..5cb3725 100644 (file)
@@ -23,7 +23,7 @@ struct forder
        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';
 }%%
 
@@ -84,7 +84,7 @@ accept m1
 ACCEPT
 enter m2
 enter m2
-accpet m2
+accept m2
 ACCEPT
 enter m1 aa
 enter m1 aa
@@ -99,7 +99,7 @@ leave m1 aa
 through m1 b
 enter m2
 accept m1
-accpet m2
+accept m2
 ACCEPT
 enter m1 aa
 enter m2