Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60874 - trunk/libs/spirit/example/scheme
From: hartmut.kaiser_at_[hidden]
Date: 2010-03-27 10:12:06


Author: hkaiser
Date: 2010-03-27 10:12:05 EDT (Sat, 27 Mar 2010)
New Revision: 60874
URL: http://svn.boost.org/trac/boost/changeset/60874

Log:
Spirit: cosmetics: tabs-->spaces, copyrights, moved sexpr parser into namespace input
Text files modified:
   trunk/libs/spirit/example/scheme/sexpr.hpp | 6 +++---
   trunk/libs/spirit/example/scheme/sexpr_test.cpp | 6 +++---
   trunk/libs/spirit/example/scheme/simple_print.hpp | 6 ++++++
   trunk/libs/spirit/example/scheme/utree_test.cpp | 7 +++++++
   4 files changed, 19 insertions(+), 6 deletions(-)

Modified: trunk/libs/spirit/example/scheme/sexpr.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/sexpr.hpp (original)
+++ trunk/libs/spirit/example/scheme/sexpr.hpp 2010-03-27 10:12:05 EDT (Sat, 27 Mar 2010)
@@ -20,7 +20,7 @@
 
 #include "utree.hpp"
 
-namespace scheme
+namespace scheme { namespace input
 {
     using boost::spirit::ascii::char_;
     using boost::spirit::ascii::space;
@@ -160,8 +160,8 @@
         rule<Iterator, utree()> atom, number;
         rule<Iterator, utf8_symbol()> symbol;
         rule<Iterator, binary_string()> byte_str;
- scheme::string<Iterator> string;
+ scheme::input::string<Iterator> string;
     };
-}
+}}
 
 #endif

Modified: trunk/libs/spirit/example/scheme/sexpr_test.cpp
==============================================================================
--- trunk/libs/spirit/example/scheme/sexpr_test.cpp (original)
+++ trunk/libs/spirit/example/scheme/sexpr_test.cpp 2010-03-27 10:12:05 EDT (Sat, 27 Mar 2010)
@@ -37,7 +37,7 @@
     }
 
     // Ignore the BOM marking the beginning of a UTF-8 file in Windows
- char c = in.peek();
+ char c = in.peek();
     if (c == '\xef')
     {
         char s[3];
@@ -62,8 +62,8 @@
     iterator_type first(source_code.begin());
     iterator_type last(source_code.end());
 
- scheme::sexpr<iterator_type> p;
- scheme::white_space<iterator_type> ws;
+ scheme::input::sexpr<iterator_type> p;
+ scheme::input::white_space<iterator_type> ws;
 
     scheme::utree result;
     if (phrase_parse(first, last, p, ws, result))

Modified: trunk/libs/spirit/example/scheme/simple_print.hpp
==============================================================================
--- trunk/libs/spirit/example/scheme/simple_print.hpp (original)
+++ trunk/libs/spirit/example/scheme/simple_print.hpp 2010-03-27 10:12:05 EDT (Sat, 27 Mar 2010)
@@ -1,3 +1,9 @@
+/*=============================================================================
+ Copyright (c) 2001-2010 Joel de Guzman
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+=============================================================================*/
 #if !defined(UTREE_SIMPLE_PRINT)
 #define UTREE_SIMPLE_PRINT
 

Modified: trunk/libs/spirit/example/scheme/utree_test.cpp
==============================================================================
--- trunk/libs/spirit/example/scheme/utree_test.cpp (original)
+++ trunk/libs/spirit/example/scheme/utree_test.cpp 2010-03-27 10:12:05 EDT (Sat, 27 Mar 2010)
@@ -1,3 +1,10 @@
+/*=============================================================================
+ Copyright (c) 2001-2010 Joel de Guzman
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+=============================================================================*/
+
 #include "utree.hpp"
 #include "simple_print.hpp"
 #include <iostream>


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