Panda3D
xFileParseData.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file xFileParseData.cxx
10  * @author drose
11  * @date 2004-10-07
12  */
13 
14 #include "xFileParseData.h"
15 #include "xLexerDefs.h"
16 
17 
18 /**
19  *
20  */
21 XFileParseData::
22 XFileParseData() :
23  _parse_flags(0)
24 {
25  // Save the line number, column number, and line text in case we detect an
26  // error later and want to report a meaningful message to the user.
27  _line_number = x_line_number;
28  _col_number = x_col_number;
29  _current_line = x_current_line;
30 }
31 
32 /**
33  * Reports a parsing error message to the user, showing the line and column
34  * from which this object was originally parsed.
35  */
37 yyerror(const std::string &message) const {
38  xyyerror(message, _line_number, _col_number, _current_line);
39 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void yyerror(const std::string &message) const
Reports a parsing error message to the user, showing the line and column from which this object was o...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.