00001 // Filename: lexerDefs.h 00002 // Created by: drose (17Jan99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef LEXER_H 00020 #define LEXER_H 00021 00022 #include <pandabase.h> 00023 00024 #include <typedef.h> 00025 00026 #include <string> 00027 00028 void egg_init_lexer(istream &in, const string &filename); 00029 void egg_start_group_body(); 00030 void egg_start_texture_body(); 00031 void egg_start_primitive_body(); 00032 int egg_error_count(); 00033 int egg_warning_count(); 00034 00035 void eggyyerror(const string &msg); 00036 void eggyyerror(ostringstream &strm); 00037 00038 void eggyywarning(const string &msg); 00039 void eggyywarning(ostringstream &strm); 00040 00041 int eggyylex(); 00042 00043 // always read from files 00044 #define YY_NEVER_INTERACTIVE 1 00045 00046 #endif