OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tokenloc.hpp
Go to the documentation of this file.
1 #ifndef COMPILER_TOKENLOC_H_INCLUDED
2 #define COMPILER_TOKENLOC_H_INCLUDED
3 
4 #include <string>
5 
6 namespace Compiler
7 {
9 
10  struct TokenLoc
11  {
12  int mColumn;
13  int mLine;
14  std::string mLiteral;
15 
16  TokenLoc() : mColumn (0), mLine (0), mLiteral ("") {}
17  };
18 }
19 
20 #endif // TOKENLOC_H_INCLUDED
Location of a token in a source file.
Definition: tokenloc.hpp:10
TokenLoc()
Definition: tokenloc.hpp:16
std::string mLiteral
Definition: tokenloc.hpp:14
int mColumn
Definition: tokenloc.hpp:12
int mLine
Definition: tokenloc.hpp:13