Panda3D
lexerDefs.h
1 // Filename: lexerDefs.h
2 // Created by: drose (17Jan99)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef LEXER_H
16 #define LEXER_H
17 
18 #include "pandabase.h"
19 
20 #include "typedef.h"
21 
22 #include <string>
23 
24 void egg_init_lexer(istream &in, const string &filename);
25 void egg_start_group_body();
26 void egg_start_texture_body();
27 void egg_start_primitive_body();
28 int egg_error_count();
29 int egg_warning_count();
30 
31 void eggyyerror(const string &msg);
32 void eggyyerror(ostringstream &strm);
33 
34 void eggyywarning(const string &msg);
35 void eggyywarning(ostringstream &strm);
36 
37 int eggyylex();
38 
39 // always read from files
40 #define YY_NEVER_INTERACTIVE 1
41 
42 #endif