top
|
up
|
prev
|
next
KeywordMap Class
Definition at line
21
of
Keyword.hpp
Constructors
KeywordMap
(
const
Keyword
* keywords_)
Member Functions
int
GetKeywordToken
(
const
Lexeme
& lexeme)
const
Member Variables
std::map<
Lexeme
,
int
>
keywordMap
const
Keyword
*
keywords
Constructor Details
KeywordMap Constructor
soulng::lexer::KeywordMap::KeywordMap(
const
Keyword
* keywords_)
Definition at line
19
of
Keyword.cpp
:
19
:
keywords
(
keywords_
)
20
{
21
const
Keyword
*
kw
=
keywords
;
22
while
(
kw
->
str
)
23
{
24
Lexeme
lexeme
(
kw
->
str
,
StrEnd
(
kw
->
str
)
)
;
25
keywordMap
[
lexeme
]
=
kw
->
tokenID
;
26
++
kw
;
27
}
28
}
Declaration at line
24
of
Keyword.hpp
Member Function Details
GetKeywordToken Member Function
int
soulng::lexer::KeywordMap::GetKeywordToken(
const
Lexeme
& lexeme)
const
Definition at line
30
of
Keyword.cpp
Declaration at line
25
of
Keyword.hpp
Called by:
soulng::lexer::Lexer::GetKeywordToken
top
|
up
|
prev
|
next