Panda3D
|
00001 // Filename: lexerDefs.h 00002 // Created by: drose (17Jan99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef LEXER_H 00016 #define LEXER_H 00017 00018 #include "pandabase.h" 00019 00020 #include "typedef.h" 00021 00022 #include <string> 00023 00024 void egg_init_lexer(istream &in, const string &filename); 00025 void egg_start_group_body(); 00026 void egg_start_texture_body(); 00027 void egg_start_primitive_body(); 00028 int egg_error_count(); 00029 int egg_warning_count(); 00030 00031 void eggyyerror(const string &msg); 00032 void eggyyerror(ostringstream &strm); 00033 00034 void eggyywarning(const string &msg); 00035 void eggyywarning(ostringstream &strm); 00036 00037 int eggyylex(); 00038 00039 // always read from files 00040 #define YY_NEVER_INTERACTIVE 1 00041 00042 #endif