Loading...
Searching...
No Matches
stelaTokenDispatcher.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include <list>
5
6
#include "
stela/common.hpp
"
7
8
namespace
by {
14
class
_nout
stelaTokenDispatcher
{
15
BY(ME(
stelaTokenDispatcher
))
16
17
public
:
18
void
add(
nint
newToken
);
19
void
addFront(
nint
newToken
);
25
nbool
pop
(
nint
&
output
);
26
27
ncnt
len()
const
;
28
29
void
rel();
30
31
private
:
32
std::list<nint> _toks;
33
};
34
}
by::stelaTokenDispatcher
Token dispatcher for managing token queue during parsing.
Definition
stelaTokenDispatcher.hpp:14
by::stelaTokenDispatcher::pop
nbool pop(nint &output)
Removes a token from the front of the queue.
common.hpp
by::noWrap
Rich logging support with polymorphic type conversion.
Definition
richLog.hpp:34