xsawyerx / guacamole

Guacamole is a parser toolkit for Standard Perl. It provides fully static BNF-based parsing capability to a reasonable subset of Perl.
https://metacpan.org/pod/Guacamole
20 stars 8 forks source link

Add 'use' and 'no' #27

Closed xsawyerx closed 4 years ago

xsawyerx commented 4 years ago

[This should be rebased before merging.]

I'm differentiating between version numbers and expressions because it helps understand which is which and give the data to the user.

It also codifies version numbers as Standard Perl understands it. v?([0-9]{1,3}\.)([0-9]{1,3}\.)?[0-9]{1,3}

use Foo::Bar;
use Foo::Bar 4.0;
use Foo::Bar v1.55.6;
use Foo::Bar ('bar', 'baz');
use Foo::Bar 4.8 ( 'foo', 'bar' );
use Foo;
use Foo ( 'baz', 'quux' );
use v5.28;
use 5.010;
xsawyerx commented 4 years ago

This was rebased and merged.