Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Process categoricals at import time.
  • Loading branch information
jnthn committed Oct 21, 2012
1 parent 2ad86ea commit 78cf73f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Perl6/World.pm
Expand Up @@ -286,6 +286,12 @@ class Perl6::World is HLL::World {
my $slp := self.get_static_lexpad($target);
for %to_install {
$slp.add_static_value($_.key, $_.value, 0, 0);
my $categorical := match($_.key, /^ '&' (\w+) ':<' (.+) '>' $/);
if $categorical {
$/.CURSOR.add_categorical(~$categorical[0], ~$categorical[1],
~$categorical[0] ~ ':sym<' ~$categorical[1] ~ '>',
$_.key);
}
}

1;
Expand Down

0 comments on commit 78cf73f

Please sign in to comment.