This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
# Execute this script with no parameter to get the online help | |
use strict; | |
use diagnostics; | |
use Marpa::R2; | |
use File::Slurp; | |
use Data::Dumper; | |
use POSIX; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
use strict; | |
use diagnostics; | |
use Marpa::R2; | |
use POSIX; | |
use Data::Dumper; | |
my $source = do { local $/; <DATA> }; | |
my $grammar = Marpa::R2::Scanless::G->new( { bless_package => 'test', source => \$source }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
use strict; | |
use diagnostics; | |
use POSIX; | |
use MarpaX::Import; | |
use Log::Log4perl qw /:easy/; | |
use Log::Any::Adapter; | |
my $conf = q( | |
log4perl.rootLogger = WARN, Screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
package My_Lex_Actions; | |
use strict; | |
use diagnostics; | |
use Log::Any qw/$log/; | |
sub new { | |
my $class = shift; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
# Execute this script with no parameter to get the online help | |
# **************************************************************************** | |
# | |
# This script will do a C language -> AST using Marpa parser | |
# | |
# C.f. https://groups.google.com/forum/?fromgroups=#!forum/marpa-parser | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
use strict; | |
use diagnostics; | |
use Marpa::R2; | |
use Encode; | |
use Carp qw/croak/; | |
use Data::Section -setup; | |
# Guess why | |
# --------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
use strict; | |
use diagnostics; | |
use Marpa::R2; | |
use Devel::Peek; | |
my $grammar_source = do {local $/; <DATA>}; | |
my $input = "\x{2665}"; | |
print "INPUT:\n--------------------\n"; | |
Dump($input); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
use strict; | |
use warnings FATAL => 'all'; | |
use Marpa::R2; | |
use Data::Section -setup; | |
use open ':std', ':encoding(utf8)'; | |
our $DATA = __PACKAGE__->local_section_data; | |
# Grammar and test suite are in __DATA__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env perl | |
use strict; | |
use warnings FATAL => 'all'; | |
use Marpa::R2; | |
use Data::Section -setup; | |
use open ':std', ':encoding(utf8)'; | |
our $DATA = __PACKAGE__->local_section_data; | |
# Grammar and test suite are in __DATA__ |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 4. in line 1.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File Line Identifier Message | |
gv.c 42 S_autoload The header file fcntl.h reserves names prefixed with 'l_', 'F_', 'O_', and 'S_' | |
gv.c 42 S_autoload The header file sys/stat.h reserves names prefixed with 'st_' and 'S_' | |
gv.c 43 S_autolen The header file fcntl.h reserves names prefixed with 'l_', 'F_', 'O_', and 'S_' | |
gv.c 43 S_autolen The header file sys/stat.h reserves names prefixed with 'st_' and 'S_' | |
gv.c 413 S_gv_init_svtype The header file fcntl.h reserves names prefixed with 'l_', 'F_', 'O_', and 'S_' | |
gv.c 413 S_gv_init_svtype The header file sys/stat.h reserves names prefixed with 'st_' and 'S_' | |
gv.c 446 S_maybe_add_coresub The header file fcntl.h reserves names prefixed with 'l_', 'F_', 'O_', and 'S_' | |
gv.c 446 S_maybe_add_coresub The header file sys/stat.h reserves names prefixed with 'st_' and 'S_' | |
gv.c 656 topgv Names that begin with either 'is' or 'to' followed by a lowercase letter may be used for additional character testing and conversion functions. |
OlderNewer