tokenDispatcher.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include <list>
5
6#include "core/common.hpp"
7
8namespace by {
13 class _nout tokenDispatcher {
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}
Token queue management for parser.
Definition: tokenDispatcher.hpp:13