Skip to content

Commit

Permalink
Dividing grammar into external/internal: t+
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Kegler authored and Jeffrey Kegler committed May 15, 2012
1 parent ba0791c commit 244e687
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 105 deletions.
10 changes: 0 additions & 10 deletions r2/t/ah2.t
Expand Up @@ -61,16 +61,6 @@ Marpa::R2::Test::is( $grammar->show_rules, <<'EOS', 'Aycock/Horspool Rules' );
1: A -> a
2: A -> E /* !used */
3: E -> /* empty !used */
4: S -> A S[R0:1]
5: S -> A A[] A[] A[]
6: S -> A[] S[R0:1]
7: S[R0:1] -> A S[R0:2]
8: S[R0:1] -> A A[] A[]
9: S[R0:1] -> A[] S[R0:2]
10: S[R0:2] -> A A
11: S[R0:2] -> A A[]
12: S[R0:2] -> A[] A
13: S['] -> S
EOS

Marpa::R2::Test::is( $grammar->show_symbols,
Expand Down
10 changes: 0 additions & 10 deletions r2/t/bocage.t
Expand Up @@ -63,16 +63,6 @@ Marpa::R2::Test::is( $grammar->show_rules, <<'EOS', 'Aycock/Horspool Rules' );
1: A -> a
2: A -> E /* !used */
3: E -> /* empty !used */
4: S -> A S[R0:1]
5: S -> A A[] A[] A[]
6: S -> A[] S[R0:1]
7: S[R0:1] -> A S[R0:2]
8: S[R0:1] -> A A[] A[]
9: S[R0:1] -> A[] S[R0:2]
10: S[R0:2] -> A A
11: S[R0:2] -> A A[]
12: S[R0:2] -> A[] A
13: S['] -> S
EOS

Marpa::R2::Test::is( $grammar->show_symbols,
Expand Down
8 changes: 0 additions & 8 deletions r2/t/chaf.t
Expand Up @@ -61,14 +61,6 @@ Marpa::R2::Test::is( $grammar->show_rules, <<'EOS', 'Aycock/Horspool Rules' );
2: B -> a
3: B -> /* empty !used */
4: C -> /* empty !used */
5: S -> A B S[R0:2]
6: S -> A B B[] B[] C C
7: S -> A B[] S[R0:2]
8: S -> A B[] B[] B[] C C
9: S[R0:2] -> B B C C
10: S[R0:2] -> B B[] C C
11: S[R0:2] -> B[] B C C
12: S['] -> S
EOS

my $recce = Marpa::R2::Recognizer->new( { grammar => $grammar } );
Expand Down
7 changes: 0 additions & 7 deletions r2/t/duplicate_parse.t
Expand Up @@ -62,13 +62,6 @@ Marpa::R2::Test::is( $grammar->show_rules,
1: p -> a
2: p -> /* empty !used */
3: n -> a
4: S -> p p S[R0:2]
5: S -> p p[] S[R0:2]
6: S -> p[] p S[R0:2]
7: S -> p[] p[] S[R0:2]
8: S[R0:2] -> p n
9: S[R0:2] -> p[] n
10: S['] -> S
END_OF_STRING

Marpa::R2::Test::is( $grammar->show_AHFA,
Expand Down
1 change: 0 additions & 1 deletion r2/t/equation.t
Expand Up @@ -129,7 +129,6 @@ Marpa::R2::Test::is( ${$actual_ref},
<<'END_RULES', 'Ambiguous Equation Rules' );
0: E -> E Op E
1: E -> Number
2: E['] -> E
END_RULES

# Alternative tests: AHFA items if XS, NFA items if PP
Expand Down
7 changes: 0 additions & 7 deletions r2/t/final_nonnullable.t
Expand Up @@ -62,13 +62,6 @@ Marpa::R2::Test::is( $grammar->show_rules,
1: p -> a
2: p -> /* empty !used */
3: n -> a
4: S -> p p S[R0:2]
5: S -> p p[] S[R0:2]
6: S -> p[] p S[R0:2]
7: S -> p[] p[] S[R0:2]
8: S[R0:2] -> p n
9: S[R0:2] -> p[] n
10: S['] -> S
END_OF_STRING

Marpa::R2::Test::is( $grammar->show_AHFA,
Expand Down
1 change: 0 additions & 1 deletion r2/t/implementation.t
Expand Up @@ -98,7 +98,6 @@ Marpa::R2::Test::is( $show_rules_output,
2: Factor -> Number
3: Term -> Term Add Term
4: Factor -> Factor Multiply Factor
5: Expression['] -> Expression
END_RULES

my $show_AHFA_output = $grammar->show_AHFA();
Expand Down
15 changes: 0 additions & 15 deletions r2/t/jirotka.t
Expand Up @@ -157,21 +157,6 @@ Marpa::R2::Test::is( $grammar->show_rules(),
12: FilterExpr -> FALSE
13: WithPf -> /* empty !used */
14: WithPf -> WITH PF
15: Input -> Input[Seq]
16: Input -> Input[Seq] SEPARATOR
17: Input[Seq] -> Statement
18: Input[Seq] -> Input[Seq] SEPARATOR Statement
19: MetricSelect -> SELECT MetricExpr ByClause MetricSelect[R3:3]
20: MetricSelect -> SELECT MetricExpr ByClause Match[] Filter[] WithPf[]
21: MetricSelect -> SELECT MetricExpr ByClause[] MetricSelect[R3:3]
22: MetricSelect -> SELECT MetricExpr ByClause[] Match[] Filter[] WithPf[]
23: MetricSelect[R3:3] -> Match MetricSelect[R3:4]
24: MetricSelect[R3:3] -> Match Filter[] WithPf[]
25: MetricSelect[R3:3] -> Match[] MetricSelect[R3:4]
26: MetricSelect[R3:4] -> Filter WithPf
27: MetricSelect[R3:4] -> Filter WithPf[]
28: MetricSelect[R3:4] -> Filter[] WithPf
29: Input['] -> Input
END_OF_RULES

Marpa::R2::Test::is( $grammar->show_AHFA(),
Expand Down
6 changes: 0 additions & 6 deletions r2/t/leo.t
Expand Up @@ -76,12 +76,6 @@ Marpa::R2::Test::is( $grammar->show_rules,
1: S -> C
2: C -> a C b
3: C -> /* empty !used */
4: S -> a S
5: S -> a S[]
6: S -> C
7: C -> a C b
8: C -> a C[] b
9: S['] -> S
END_OF_STRING

Marpa::R2::Test::is( $grammar->show_AHFA, <<'END_OF_STRING', 'Leo168 AHFA' );
Expand Down
3 changes: 0 additions & 3 deletions r2/t/leo2.t
Expand Up @@ -54,9 +54,6 @@ Marpa::R2::Test::is( $grammar->show_rules,
<<'END_OF_STRING', 'Leo166 Rules' );
0: S -> a S
1: S -> /* empty !used */
2: S -> a S
3: S -> a S[]
4: S['] -> S
END_OF_STRING

Marpa::R2::Test::is( $grammar->show_AHFA, <<'END_OF_STRING', 'Leo166 AHFA' );
Expand Down
6 changes: 0 additions & 6 deletions r2/t/leo3.t
Expand Up @@ -68,12 +68,6 @@ Marpa::R2::Test::is( $grammar->show_rules,
2: B -> C
3: C -> S
4: S -> /* empty !used */
5: S -> a A
6: S -> a A[]
7: A -> B
8: B -> C
9: C -> S
10: S['] -> S
END_OF_STRING

Marpa::R2::Test::is( $grammar->show_AHFA, <<'END_OF_STRING', 'Leo166 AHFA' );
Expand Down
11 changes: 0 additions & 11 deletions r2/t/leo_cycle.t
Expand Up @@ -82,17 +82,6 @@ Marpa::R2::Test::is( $grammar->show_rules,
7: G -> H
8: A -> B
9: S -> /* empty !used */
10: S -> a A
11: S -> a A[]
12: H -> S
13: B -> C
14: D -> E
15: E -> F
16: F -> G
17: C -> D
18: G -> H
19: A -> B
20: S['] -> S
END_OF_STRING

my $expected_ahfa_output = <<'END_OF_STRING';
Expand Down
1 change: 0 additions & 1 deletion r2/t/leo_example.t
Expand Up @@ -129,7 +129,6 @@ Marpa::R2::Test::is( $show_rules_output, <<'END_RULES', 'Leo Example Rules' );
4: Expression -> Lvalue MultiplyAssignOp Expression
5: Expression -> Variable
6: Lvalue -> Variable
7: Statement['] -> Statement
END_RULES

my $show_AHFA_output = $grammar->show_AHFA();
Expand Down
1 change: 0 additions & 1 deletion r2/t/minus.t
Expand Up @@ -117,7 +117,6 @@ Marpa::R2::Test::is( $grammar->show_rules,
2: E -> MinusMinus E
3: E -> Minus E
4: E -> Number
5: E['] -> E
END_RULES

Marpa::R2::Test::is( $grammar->show_AHFA,
Expand Down
18 changes: 0 additions & 18 deletions r2/t/rewrite.t
Expand Up @@ -121,24 +121,6 @@ Marpa::R2::Test::is( $show_rules_output, <<'END_RULES', 'Rewritten Rules' );
4: optional_whitespace -> /* empty !used */
5: optional_modifier -> modifier
6: optional_modifier -> /* empty !used */
7: statement -> optional_whitespace expression statement[R0:2]
8: statement -> optional_whitespace expression optional_whitespace[] optional_modifier[] optional_whitespace[]
9: statement -> optional_whitespace[] expression statement[R0:2]
10: statement -> optional_whitespace[] expression optional_whitespace[] optional_modifier[] optional_whitespace[]
11: statement[R0:2] -> optional_whitespace statement[R0:3]
12: statement[R0:2] -> optional_whitespace optional_modifier[] optional_whitespace[]
13: statement[R0:2] -> optional_whitespace[] statement[R0:3]
14: statement[R0:3] -> optional_modifier optional_whitespace
15: statement[R0:3] -> optional_modifier optional_whitespace[]
16: statement[R0:3] -> optional_modifier[] optional_whitespace
17: statements -> statements[Seq]
18: statements -> statements[Seq] comma
19: statements[Seq] -> statement
20: statements[Seq] -> statements[Seq] comma statement
21: block -> block[Seq]
22: block[Seq] -> statements
23: block[Seq] -> block[Seq] statements
24: block['] -> block
END_RULES

# Marpa::R2::Display::End
Expand Down

0 comments on commit 244e687

Please sign in to comment.