Loading...
Searching...
No Matches
tokenDispatcher.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include <list>
5
6
#include "
core/common.hpp
"
7
8
namespace
by {
49
class
_nout
tokenDispatcher
{
50
public
:
51
void
add(
nint
newToken
);
52
void
addFront(
nint
newToken
);
58
nbool
pop
(
nint
&
output
);
59
60
ncnt
len()
const
;
61
62
void
rel();
63
64
private
:
65
std::list<nint> _toks;
66
};
67
}
by::tnarr
Definition
tnarr.hpp:9
by::tokenDispatcher
Token queue management for parser.
Definition
tokenDispatcher.hpp:49
by::tokenDispatcher::pop
nbool pop(nint &output)
Removes a token from the front of the queue.
common.hpp
to Top