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
Code:
Output: