leafTokenDispatcher.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include <list>
5
6
#include "
leaf/common.hpp
"
7
8
namespace
by {
13
class
_nout
leafTokenDispatcher
{
14
public
:
15
void
add(nint newToken);
16
void
addFront(nint newToken);
17
nbool pop(nint& output);
18
19
ncnt len()
const
;
20
21
void
rel();
22
23
private
:
24
std::list<nint> _toks;
25
};
26
}
by::leafTokenDispatcher
Token dispatcher for managing token queue during parsing.
Definition:
leafTokenDispatcher.hpp:13
common.hpp