Skip to content

Commit

Permalink
Documenting scanless interface: t+
Browse files Browse the repository at this point in the history
  • Loading branch information
- committed Dec 25, 2012
1 parent ce47a90 commit 5b0d263
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion r2/MANIFEST
Expand Up @@ -277,10 +277,10 @@ t/rewrite.t
t/sequence.t
t/sequence2.t
t/sl_dsl.t
t/sl_gsyn.t
t/sl_prefix.t
t/stuifzand.t
t/syn_engine.t
t/syn_sl.t
t/syn_stuifzand.t
t/thin_eq.t
t/timeflies.t
Expand Down
2 changes: 1 addition & 1 deletion r2/pod/Scanless/G.pod
Expand Up @@ -20,7 +20,7 @@ Marpa::R2::Scanless::G - Scanless interface grammars
=head1 Synopsis

=for Marpa::R2::Display
name: Stuifzand Synopsis
name: Scanless grammar synopsis
partial: 1
normalize-whitespace: 1

Expand Down
5 changes: 5 additions & 0 deletions r2/t/syn_sl.t → r2/t/sl_gsyn.t
Expand Up @@ -27,6 +27,9 @@ use Marpa::R2::Test;

## no critic (ErrorHandling::RequireCarping);

# Marpa::R2::Display
# name: Scanless grammar synopsis

use Marpa::R2;

my $grammar = Marpa::R2::Scanless::G->new(
Expand Down Expand Up @@ -62,6 +65,8 @@ END_OF_SOURCE
}
);

# Marpa::R2::Display::End

sub my_parser {
my ( $grammar, $p_input_string ) = @_;
my $recce = Marpa::R2::Scanless::R->new( { grammar => $grammar } );
Expand Down

0 comments on commit 5b0d263

Please sign in to comment.