Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
alib2algo_experimental
src
grammar
parsing
LeftFactorize.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <
grammar/ContextFree/CFG.h
>
9
10
namespace
grammar
{
11
12
namespace
parsing {
13
14
class
LeftFactorize
{
15
public
:
16
static
void
leftFactorize
(
grammar::CFG < >
&
grammar
,
const
DefaultSymbolType
& terminal,
const
DefaultSymbolType
& nonterminal );
17
18
};
19
20
}
/* namespace parsing */
21
22
}
/* namespace grammar */
23
CFG.h
grammar::CFG
Context free grammar in Chomsky hierarchy or type 2 in Chomsky hierarchy. Generates context free lang...
Definition:
CFG.h:67
grammar::parsing::LeftFactorize
Definition:
LeftFactorize.h:14
grammar::parsing::LeftFactorize::leftFactorize
static void leftFactorize(grammar::CFG< > &grammar, const DefaultSymbolType &terminal, const DefaultSymbolType &nonterminal)
Definition:
LeftFactorize.cpp:13
object::Object
Definition:
Object.h:16
grammar
Definition:
ToAutomaton.h:24
Generated on Mon Dec 27 2021 10:21:52 for Algorithms Library Toolkit by
1.9.2