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
12
namespace
antlr {
13
#endif
14
15
int
Token::getColumn()
const
16
{
17
return
0;
18
}
19
20
int
Token::getLine()
const
21
{
22
return
0;
23
}
24
25
ANTLR_USE_NAMESPACE(std)
string
Token::getText()
const
26
{
27
return
"<no text>"
;
28
}
29
30
int
Token::getType()
const
31
{
32
return
type;
33
}
34
35
void
Token::setColumn(
int
)
36
{
37
}
38
39
void
Token::setLine(
int
)
40
{
41
}
42
43
void
Token::setText(
const
ANTLR_USE_NAMESPACE(std)
string
&)
44
{
45
}
46
47
void
Token::setType(
int
t)
48
{
49
type = t;
50
}
51
52
void
Token::setFilename(
const
ANTLR_USE_NAMESPACE(std)
string
&)
53
{
54
}
55
56
ANTLR_USE_NAMESPACE(std)
string
emptyString(
""
);
57
58
const
ANTLR_USE_NAMESPACE(std)
string
& Token::getFilename()
const
59
{
60
return
emptyString;
61
}
62
63
ANTLR_USE_NAMESPACE(std)
string
Token::toString()
const
64
{
65
return
"[\""
+getText()+
"\",<"
+type+
">]"
;
66
}
67
68
ANTLR_API RefToken nullToken;
69
70
#ifndef NO_STATIC_CONSTS
71
const
int
Token::MIN_USER_TYPE;
72
const
int
Token::NULL_TREE_LOOKAHEAD;
73
const
int
Token::INVALID_TYPE;
74
const
int
Token::EOF_TYPE;
75
const
int
Token::SKIP;
76
#endif
77
78
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
79
}
80
#endif
antlr
Token.cpp
Generated on Wed Jun 26 2024 13:56:38 for OpenMD by
1.11.0