OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
Token.cpp
1/* ANTLR Translator Generator
2 * Project led by Terence Parr at http://www.jGuru.com
3 * Software rights: http://www.antlr.org/license.html
4 *
5 * $Id$
6 */
7
8#include "antlr/Token.hpp"
9#include "antlr/String.hpp"
10
11#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
12namespace antlr {
13#endif
14
15int Token::getColumn() const
16{
17 return 0;
18}
19
20int Token::getLine() const
21{
22 return 0;
23}
24
25ANTLR_USE_NAMESPACE(std)string Token::getText() const
26{
27 return "<no text>";
28}
29
30int Token::getType() const
31{
32 return type;
33}
34
35void Token::setColumn(int)
36{
37}
38
39void Token::setLine(int)
40{
41}
42
43void Token::setText(const ANTLR_USE_NAMESPACE(std)string&)
44{
45}
46
47void Token::setType(int t)
48{
49 type = t;
50}
51
52void Token::setFilename(const ANTLR_USE_NAMESPACE(std)string&)
53{
54}
55
56ANTLR_USE_NAMESPACE(std)string emptyString("");
57
58const ANTLR_USE_NAMESPACE(std)string& Token::getFilename() const
59{
60 return emptyString;
61}
62
63ANTLR_USE_NAMESPACE(std)string Token::toString() const
64{
65 return "[\""+getText()+"\",<"+type+">]";
66}
67
68ANTLR_API RefToken nullToken;
69
70#ifndef NO_STATIC_CONSTS
71const int Token::MIN_USER_TYPE;
72const int Token::NULL_TREE_LOOKAHEAD;
73const int Token::INVALID_TYPE;
74const int Token::EOF_TYPE;
75const int Token::SKIP;
76#endif
77
78#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
79}
80#endif