Changeset 44657


Ignore:
Timestamp:
Apr 20, 2008, 10:37:35 PM (10 years ago)
Author:
Hartmut Kaiser
Message:

Spirit.Lex: Updated examples.

Location:
trunk/libs/spirit/example/lex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/spirit/example/lex/static_lexer/word_count_generate.cpp

    r44360 r44657  
    1515
    1616#include <boost/spirit/include/lex_lexer_lexertl.hpp>
    17 #include <boost/spirit/lex/lexer/lexertl/lexertl_generate_static.hpp>
     17#include <boost/spirit/home/lex/lexer/lexertl/lexertl_generate_static.hpp>
    1818
    1919#include <fstream>
  • trunk/libs/spirit/example/lex/static_lexer/word_count_static.hpp

    r44360 r44657  
    55
    66// Auto-generated by boost::lexer
    7 #if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_Feb_13_2008_12_01_20)
    8 #define BOOST_SPIRIT_LEXER_NEXT_TOKEN_Feb_13_2008_12_01_20
     7#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_Apr_20_2008_17_34_03)
     8#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_Apr_20_2008_17_34_03
    99
    1010#include <boost/detail/iterator.hpp>
    11 #include <boost/spirit/support/detail/lexer/char_traits.hpp>
     11#include <boost/spirit/home/support/detail/lexer/char_traits.hpp>
    1212
    1313// the generated table of state names and the tokenizer have to be
     
    6464        0, 0, 0, 0, 0, 0, 0, 3,
    6565        4, 2, 1, 65536, 0, 0, 0, 0,
    66         0, 0, 2, 1, 65537, 0, 0, 0,
    67         0, 0, 0, 0, 1, 65538, 0, 0,
     66        0, 0, 2, 1, 10, 0, 0, 0,
     67        0, 0, 0, 0, 1, 65537, 0, 0,
    6868        0, 0, 0, 0, 0};
    6969
  • trunk/libs/spirit/example/lex/word_count_lexer.cpp

    r44608 r44657  
    7373        using boost::phoenix::ref;
    7474        using boost::phoenix::distance;
    75        
    76         // Note that all placeholders used in lexer semantic actions in
    77         // conjunction with functors created based on Phoenix2 need to be from
    78         // the namespace boost::phoenix::arg_names (not spirit::arg_names).
    79         // Using the wrong placeholders leads to subtle compilation errors
    80         // which are difficult to backtrack to their cause.
    8175        using boost::spirit::arg_names::_1;
    8276
Note: See TracChangeset for help on using the changeset viewer.