Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-05-09 10:49:48


Author: hkaiser
Date: 2008-05-09 10:49:48 EDT (Fri, 09 May 2008)
New Revision: 45252
URL: http://svn.boost.org/trac/boost/changeset/45252

Log:
Spirit.Lex: Minor fixes to one of the examples
Text files modified:
   trunk/libs/spirit/example/lex/word_count_functor.flex | 1 -
   trunk/libs/spirit/example/lex/word_count_functor_flex.cpp | 25 ++++++++++++-------------
   2 files changed, 12 insertions(+), 14 deletions(-)

Modified: trunk/libs/spirit/example/lex/word_count_functor.flex
==============================================================================
--- trunk/libs/spirit/example/lex/word_count_functor.flex (original)
+++ trunk/libs/spirit/example/lex/word_count_functor.flex 2008-05-09 10:49:48 EDT (Fri, 09 May 2008)
@@ -43,7 +43,6 @@
             break;
     } while (EOF != tok);
     printf("lines: %d, words: %d, characters: %d\n", l, w, c);
- printf("Time elapsed: %f", tim.elapsed());
     fclose(yyin);
 }
 

Modified: trunk/libs/spirit/example/lex/word_count_functor_flex.cpp
==============================================================================
--- trunk/libs/spirit/example/lex/word_count_functor_flex.cpp (original)
+++ trunk/libs/spirit/example/lex/word_count_functor_flex.cpp 2008-05-09 10:49:48 EDT (Fri, 09 May 2008)
@@ -1,4 +1,4 @@
-#line 2 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
+#line 2 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
 /* A lexical scanner generated by flex */
 
 /* Scanner skeleton version:
@@ -361,9 +361,9 @@
 #define YY_MORE_ADJ 0
 #define YY_RESTORE_YY_MORE_OFFSET
 char *yytext;
-#line 1 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 1 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 #define INITIAL 0
-#line 2 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 2 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 #include <boost/timer.hpp>
 #if defined(_WIN32)
     #include <io.h>
@@ -371,7 +371,7 @@
     #define ID_WORD 1000
     #define ID_EOL 1001
     #define ID_CHAR 1002
-#line 375 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
+#line 375 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
 
 /* Macros after this point can all be overridden by user definitions in
  * section 1.
@@ -533,9 +533,9 @@
         register char *yy_cp, *yy_bp;
         register int yy_act;
 
-#line 11 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 11 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 
-#line 539 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
+#line 539 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
 
         if ( yy_init )
                 {
@@ -620,25 +620,25 @@
 
 case 1:
 YY_RULE_SETUP
-#line 12 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 12 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 { return ID_WORD; }
         YY_BREAK
 case 2:
 YY_RULE_SETUP
-#line 13 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 13 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 { return ID_EOL; }
         YY_BREAK
 case 3:
 YY_RULE_SETUP
-#line 14 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 14 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 { return ID_CHAR; }
         YY_BREAK
 case 4:
 YY_RULE_SETUP
-#line 15 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 15 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 ECHO;
         YY_BREAK
-#line 642 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
+#line 642 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor_flex.cpp"
 case YY_STATE_EOF(INITIAL):
         yyterminate();
 
@@ -1528,7 +1528,7 @@
         return 0;
         }
 #endif
-#line 15 "c:\\CVS\\spirit\\libs\\spirit\\example\\lex\\word_count_functor.flex"
+#line 15 "c:\\CVS\\boost\\libs\\spirit\\example\\lex\\word_count_functor.flex"
 
 
 bool count(int tok, int* c, int* w, int* l)
@@ -1560,7 +1560,6 @@
             break;
     } while (EOF != tok);
     printf("lines: %d, words: %d, characters: %d\n", l, w, c);
- printf("Time elapsed: %f", tim.elapsed());
     fclose(yyin);
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk