MarpaX::Languages::ECMAScript::AST::Impl - Implementation of Marpa's interface
version 0.017
use strict; use warnings FATAL => 'all'; use MarpaX::Languages::ECMAScript::AST::Impl; my $marpaImpl = MarpaX::Languages::ECMAScript::AST::Impl->new();
This modules implements all needed Marpa calls using its Scanless interface. Please be aware that logging is done via Log::Any.
Instantiate a new object. Takes as parameter two references to hashes: the grammar options, the recognizer options. In the recognizer, there is a grammar internal option that will be forced to the grammar object. If the environment variable MARPA_TRACE_TERMINALS is set to a true value, then internal Marpa trace on terminals is activated. If the environment MARPA_TRACE_VALUES is set to a true value, then internal Marpa trace on values is activated. If the environment variable MARPA_TRACE is set to a true value, then both terminals and values internal Marpa traces are activated.
Please note that Marpa::R2::Scanless:G grammar object are systematically cached or reuse.
No Marpa::R2::Scanless:R recognizer will be created, but $recceOptionsHashp is nevertheless kept for further see (see method make_R()).
Creates a Marpa::R2::Scanless::R recognizer object and store it together with the grammar.
Destroy an eventual Marpa::R2::Scanless::R recognizer object stored together with the grammar.
Returns Marpa's recognizer's value.
Returns Marpa's recognizer's read. Argument is a reference to input.
Returns Marpa's recognizer's resume.
Returns Marpa's recognizer's last_completed for symbol $symbol.
Returns Marpa's recognizer's last_completed_range for symbol $symbol.
Returns Marpa's recognizer's range_to_string for a start value of $start and an end value of $end.
Returns Marpa's recognizer's event for event number $eventNumber.
Returns Marpa's recognizer's events.
Returns Marpa's recognizer's pause_lexeme.
Returns Marpa's recognizer's pause_span.
Returns Marpa's recognizer's literal.
Returns Marpa's recognizer's line_column at eventual $start location in the input stream. Default location is current location.
Returns Marpa's recognizer's substring corresponding to g1 span ($start, $length).
Returns Marpa's recognizer's lexeme_read for lexeme $lexeme, at start position $start, length $length and value $value.
Returns Marpa's recognizer's current_g1_location.
Returns Marpa's recognizer's g1_location_to_span for a g1 location $g1.
Returns Marpa's recognizer's terminals_expected.
Returns Marpa's recognizer's show_progress.
Returns Marpa's recognizer's progress.
Returns a Marpa::R2::Scanless::G object of this grammar.
Alias of the grammar() method.
Returns a Marpa::R2::Scanless::R object of this grammar.
Alias of the recce() method.
Returns Marpa's grammar's rule_ids.
Returns Marpa's grammar's rule_expand.
Returns Marpa's grammar's symbol_name.
Marpa::R2::Scanless::G
Marpa::R2::Scanless::R
Jean-Damien Durand <jeandamiendurand@free.fr>
This software is copyright (c) 2013 by Jean-Damien Durand.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MarpaX::Languages::ECMAScript::AST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::Languages::ECMAScript::AST
CPAN shell
perl -MCPAN -e shell install MarpaX::Languages::ECMAScript::AST
For more information on module installation, please visit the detailed CPAN module installation guide.