Skip to content
Snippets Groups Projects
Commit a7f7ce55 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix build

parent 55153c96
No related branches found
No related tags found
No related merge requests found
...@@ -48,22 +48,22 @@ void FirstTest::testFirst ( ) { ...@@ -48,22 +48,22 @@ void FirstTest::testFirst ( ) {
   
first[rhsE1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsE1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA, tL tA, tL
} };
first[rhsE2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsE2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA, tL tA, tL
} };
first[rhsT1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsT1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA, tL tA, tL
} };
first[rhsT2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsT2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA, tL tA, tL
} };
first[rhsF1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsF1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA tA
} };
first[rhsF2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsF2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tL tL
} };
   
// -------------------------------------------------- // --------------------------------------------------
   
...@@ -130,46 +130,46 @@ void FirstTest::testFirst ( ) { ...@@ -130,46 +130,46 @@ void FirstTest::testFirst ( ) {
   
first[rhsS1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsS1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA, tB tA, tB
} };
first[rhsS2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsS2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tD tD
} };
first[rhsS3] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsS3] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tC tC
} };
first[rhsA1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsA1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA tA
} };
first[rhsA2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsA2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tB tB
} };
first[rhsB1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsB1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA tA
} };
first[rhsB2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsB2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tB tB
} };
first[rhsC1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsC1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tA tA
} };
first[rhsC2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsC2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tE tE
} };
first[rhsD1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsD1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tC tC
} };
first[rhsE1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsE1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tC tC
} };
first[rhsE2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsE2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON string::Epsilon::EPSILON
} };
first[rhsF1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsF1] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tE tE
} };
first[rhsF2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { first[rhsF2] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON string::Epsilon::EPSILON
} };
   
// -------------------------------------------------- // --------------------------------------------------
   
...@@ -191,8 +191,7 @@ void FirstTest::testFirst2 ( ) { ...@@ -191,8 +191,7 @@ void FirstTest::testFirst2 ( ) {
grammar::CFG grammar ( A ); grammar::CFG grammar ( A );
   
grammar.setTerminalAlphabet ( { c, d } ); grammar.setTerminalAlphabet ( { c, d } );
grammar.setNonterminalAlphabet ( { { A } grammar.setNonterminalAlphabet ( { { A } } );
} );
grammar.setInitialSymbol ( A ); grammar.setInitialSymbol ( A );
   
grammar.addRule ( A, std::vector < alphabet::Symbol > { A, c } ); grammar.addRule ( A, std::vector < alphabet::Symbol > { A, c } );
...@@ -215,8 +214,7 @@ void FirstTest::testFirst3 ( ) { ...@@ -215,8 +214,7 @@ void FirstTest::testFirst3 ( ) {
grammar::CFG grammar ( S ); grammar::CFG grammar ( S );
   
grammar.setTerminalAlphabet ( { a, b, c, d, f } ); grammar.setTerminalAlphabet ( { a, b, c, d, f } );
grammar.setNonterminalAlphabet ( { { S, A, B } grammar.setNonterminalAlphabet ( { { S, A, B } } );
} );
grammar.setInitialSymbol ( S ); grammar.setInitialSymbol ( S );
   
grammar.addRule ( S, std::vector < alphabet::Symbol > { A, a } ); grammar.addRule ( S, std::vector < alphabet::Symbol > { A, a } );
......
...@@ -48,13 +48,13 @@ void FollowTest::testFollow ( ) { ...@@ -48,13 +48,13 @@ void FollowTest::testFollow ( ) {
   
follow[nE] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nE] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON, tP, tR string::Epsilon::EPSILON, tP, tR
} };
follow[nT] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nT] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON, tP, tR, tS string::Epsilon::EPSILON, tP, tR, tS
} };
follow[nF] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nF] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON, tP, tR, tS string::Epsilon::EPSILON, tP, tR, tS
} };
   
// -------------------------------------------------- // --------------------------------------------------
   
...@@ -122,25 +122,25 @@ void FollowTest::testFollow ( ) { ...@@ -122,25 +122,25 @@ void FollowTest::testFollow ( ) {
   
follow[nS] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nS] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON string::Epsilon::EPSILON
} };
follow[nA] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nA] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON string::Epsilon::EPSILON
} };
follow[nB] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nB] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tD tD
} };
follow[nC] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nC] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON string::Epsilon::EPSILON
} };
follow[nD] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nD] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tD tD
} };
follow[nE] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nE] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
string::Epsilon::EPSILON string::Epsilon::EPSILON
} };
follow[nF] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > { follow[nF] = std::set < std::variant < alphabet::Symbol, string::Epsilon > > {
tD tD
} };
   
// -------------------------------------------------- // --------------------------------------------------
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment