jddurand / MarpaX-Languages-ECMAScript-AST

ECMAScript AST using Marpa
2 stars 1 forks source link

More than one parse tree value #4

Closed jddurand closed 10 years ago

jddurand commented 10 years ago

Code:

use strict;
use warnings;
use MarpaX::Languages::ECMAScript::AST;
MarpaX::Languages::ECMAScript::AST->new->parse('function meh () {};');

Output:

Uncaught exception from user code:

    More than one parse tree value
    Exception::Class::Base::throw('MarpaX::Languages::ECMAScript::AST::Exception::InternalError',
    'error', 'More than one parse tree value') called at
    /home/perl/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1/Exception/Class.pm
    line 170
jddurand commented 10 years ago

Fixed with 95cad6383742a6b07087dd2e763171ec3e966ebc tag 0.18