basix_doc 0.1
/Users/mourrain/Devel/mmx/basix/src/parse_tools.cpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : parse_tools.cpp
00004 * DESCRIPTION: Tools for parsing
00005 * COPYRIGHT  : (C) 2007  Gregoire Lecerf
00006 *******************************************************************************
00007 * This software falls under the GNU general public license and comes WITHOUT
00008 * ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
00009 * If you don't have this file, write to the Free Software Foundation, Inc.,
00010 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00011 ******************************************************************************/
00012 
00013 #include <basix/parse_tools.hpp>
00014 #include <basix/literal.hpp>
00015 
00016 namespace mmx {
00017 
00018 parse_instance::parse_instance (const string& f, nat i, const string& s) {
00019   lex_file_name= f;
00020   lex_input_number= i;
00021   lex_string= const_cast<char*> (S(s));
00022   lex_length= N(s);
00023   lex_start = 0;
00024   lex_start_line = 0;
00025   lex_start_begin_line = 0;
00026   lex_prev = 0;
00027   lex_prev_line = 0;
00028   lex_prev_begin_line = 0;
00029   lex_pos = 0;
00030   lex_line = 0;
00031   lex_begin_line = 0;
00032 }
00033 
00034 } // namespace mmx
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines