Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
LRParserTypes.h
Go to the documentation of this file.
1
6#pragma once
7
10
11#include <alib/map>
12#include <alib/set>
13#include <alib/variant>
14#include <alib/vector>
15
16namespace grammar {
17
18namespace parsing {
19
20enum class LRAction {
21 Shift,
22 Reduce,
23 Accept
24};
25
29
30} /* namespace parsing */
31
32} /* namespace grammar */
33
Class extending the map class from the standard library. Original reason is to allow printing of the ...
Definition: map.hpp:48
Class extending the pair class from the standard library. Original reason is to allow printing of the...
Definition: pair.hpp:43
ext::map< ext::pair< LR0Items, DefaultSymbolType >, ext::pair< LRAction, ext::variant< LR0Items, ext::pair< DefaultSymbolType, ext::vector< ext::variant< DefaultSymbolType, DefaultSymbolType > > > > > > LRActionTable
Definition: LRParserTypes.h:27
ext::map< ext::pair< LR0Items, DefaultSymbolType >, LR0Items > LRGotoTable
Definition: LRParserTypes.h:28
LRAction
Definition: LRParserTypes.h:20
ext::map< DefaultSymbolType, ext::set< ext::pair< unsigned, ext::vector< ext::variant< DefaultSymbolType, DefaultSymbolType > > > > > LR0Items
Definition: LRParserTypes.h:26
Definition: ToAutomaton.h:24