Update of /cvsroot/boost/boost/libs/wave/samples/list_includes/lexertl
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18164
Modified Files:
lexertl_lexer.hpp wave_lexertl_config.hpp
wave_lexertl_tables.hpp
Log Message:
Wave: Untabified files.
Index: lexertl_lexer.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/wave/samples/list_includes/lexertl/lexertl_lexer.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- lexertl_lexer.hpp 25 Feb 2007 00:47:11 -0000 1.16
+++ lexertl_lexer.hpp 25 Feb 2007 17:45:00 -0000 1.17
@@ -83,6 +83,8 @@
#if BOOST_WAVE_LEXERTL_USE_STATIC_TABLES != 0
lexertl() {}
+ void init_dfa(wave::language_support lang, Position const& pos,
+ bool force_reinit = false) {}
bool is_initialized() const { return true; }
#else
lexertl() : has_compiled_dfa_(false) {}
@@ -496,12 +498,12 @@
{
#if BOOST_WAVE_LEXERTL_USE_STATIC_TABLES == 0
size_t const* const lookup = &state_machine_._lookup[0]->front ();
- size_t const dfa_alphabet_ = state_machine_._dfa_alphabet[0];
+ size_t const dfa_alphabet = state_machine_._dfa_alphabet[0];
size_t const* dfa = &state_machine_._dfa[0]->front();
- size_t const* ptr = dfa + dfa_alphabet_ + ::lexertl::dfa_offset;
+ size_t const* ptr = dfa + dfa_alphabet + ::lexertl::dfa_offset;
#else
- const std::size_t *ptr = dfa + dfa_offset;
+ const std::size_t *ptr = dfa + dfa_offset;
#endif // BOOST_WAVE_LEXERTL_USE_STATIC_TABLES == 0
Iterator curr = first;
@@ -516,7 +518,7 @@
++curr;
#if BOOST_WAVE_LEXERTL_USE_STATIC_TABLES == 0
- ptr = &dfa[state * (dfa_alphabet_ + ::lexertl::dfa_offset)];
+ ptr = &dfa[state * (dfa_alphabet + ::lexertl::dfa_offset)];
#else
ptr = &dfa[state * dfa_offset];
#endif // BOOST_WAVE_LEXERTL_USE_STATIC_TABLES == 0
@@ -595,9 +597,7 @@
Position const &pos_, wave::language_support language)
: first(first_, last_, pos_), language(language), at_eof(false)
{
-#if BOOST_WAVE_LEXERTL_USE_STATIC_TABLES == 0
lexer_.init_dfa(language, pos_);
-#endif // #if BOOST_WAVE_LEXERTL_USE_STATIC_TABLES == 0
}
~lexertl_functor() {}
Index: wave_lexertl_config.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/wave/samples/list_includes/lexertl/wave_lexertl_config.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- wave_lexertl_config.hpp 25 Feb 2007 00:47:11 -0000 1.1
+++ wave_lexertl_config.hpp 25 Feb 2007 17:45:00 -0000 1.2
@@ -13,7 +13,9 @@
///////////////////////////////////////////////////////////////////////////////
// If the BOOST_WAVE_LEXERTL_USE_STATIC_TABLES constant is defined to be not
// equal to zero, the lexer will use static pre-compiled dfa tables (as
-// included in the file: wave_lexertl_tables.hpp)
+// included in the file: wave_lexertl_tables.hpp). Enabling the static tables
+// makes the code compilable even without having the lexertl library
+// available.
#if !defined(BOOST_WAVE_LEXERTL_USE_STATIC_TABLES)
#define BOOST_WAVE_LEXERTL_USE_STATIC_TABLES 1
#endif
Index: wave_lexertl_tables.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/wave/samples/list_includes/lexertl/wave_lexertl_tables.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- wave_lexertl_tables.hpp 25 Feb 2007 00:55:37 -0000 1.2
+++ wave_lexertl_tables.hpp 25 Feb 2007 17:45:00 -0000 1.3
@@ -14,7 +14,7 @@
namespace boost { namespace wave { namespace cpplexer { namespace lexertl
{
// this number was manually taken from the generated code
-// here: const std::size_t *ptr_ = dfa_ + 81;
+// here: const std::size_t *ptr_ = dfa_ + 81;
const int dfa_offset = 81;
// Auto-generated by lexertl (http://www.benhanson.net/lexertl.html)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs