NAME

MarpaX::ESLIF::ECMA404::ValueInterface - MarpaX::ESLIF::ECMA404 Value Interface

VERSION

version 0.012

SYNOPSIS

    use MarpaX::ESLIF::ECMA404::ValueInterface;

    my $valueInterface = MarpaX::ESLIF::ECMA404::ValueInterface->new();

DESCRIPTION

MarpaX::ESLIF::ECMA404's Value Interface

SUBROUTINES/METHODS

new($class)

Instantiate a new value interface object.

Required methods

isWithHighRankOnly

Returns a true or a false value, indicating if valuation should use highest ranked rules or not, respectively. Default is a true value.

isWithOrderByRank

Returns a true or a false value, indicating if valuation should order by rule rank or not, respectively. Default is a true value.

isWithAmbiguous

Returns a true or a false value, indicating if valuation should allow ambiguous parse tree or not, respectively. Default is a false value.

isWithNull

Returns a true or a false value, indicating if valuation should allow a null parse tree or not, respectively. Default is a false value.

maxParses

Returns the number of maximum parse tree valuations. Default is unlimited (i.e. a false value).

getResult

Returns the current parse tree value.

setResult

Sets the current parse tree value.

Specific actions

unicode

Action for rule char ::= /(?:\\u[[:xdigit:]]{4})+/

members

Action for rule members ::= pairs* separator = ','> hide-separator => 1>

number

Action for rule number ::= /\-?(?:(?:[1-9]?[0-9]*)|[0-9])(?:\.[0-9]*)?(?:[eE](?:[+-])?[0-9]+)?/

nan

Action for rules number ::= '-' 'NaN' and number ::= 'NaN'

negative_infinity

Action for rule number ::= '-' 'Infinity'

positive_infinity

Action for rule number ::= 'Infinity'

SEE ALSO

MarpaX::ESLIF::ECMA404

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 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.