Panda3D
 All Classes Functions Variables Enumerations
xLexerDefs.h
1 // Filename: xLexerDefs.h
2 // Created by: drose (03Oct04)
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 XLEXERDEFS_H
16 #define XLEXERDEFS_H
17 
18 #include "pandatoolbase.h"
19 
20 void x_init_lexer(istream &in, const string &filename);
21 int x_error_count();
22 int x_warning_count();
23 
24 void xyyerror(const string &msg);
25 void xyyerror(const string &msg, int line_number, int col_number,
26  const string &current_line);
27 void xyywarning(const string &msg);
28 
29 int xyylex();
30 
31 extern int x_line_number;
32 extern int x_col_number;
33 extern char x_current_line[];
34 
35 #endif