Panda3D
 All Classes Functions Variables Enumerations
xLexerDefs.h
00001 // Filename: xLexerDefs.h
00002 // Created by:  drose (03Oct04)
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 XLEXERDEFS_H
00016 #define XLEXERDEFS_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 void x_init_lexer(istream &in, const string &filename);
00021 int x_error_count();
00022 int x_warning_count();
00023 
00024 void xyyerror(const string &msg);
00025 void xyyerror(const string &msg, int line_number, int col_number, 
00026               const string &current_line);
00027 void xyywarning(const string &msg);
00028 
00029 int xyylex();
00030 
00031 extern int x_line_number;
00032 extern int x_col_number;
00033 extern char x_current_line[];
00034 
00035 #endif
 All Classes Functions Variables Enumerations