Created
June 2, 2019 15:45
-
-
Save antoniogamiz/992945353cb9fab964cc63a98e8aa6c2 to your computer and use it in GitHub Desktop.
weird thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
use Test; | |
use Perl6::TypeGraph; | |
plan *; | |
my $tg = Perl6::TypeGraph.new-from-file("test-type-graph.txt"); | |
say $tg.types.keys; | |
{ # inhteritance | |
is $tg.types<C>.super[0].name, "Any"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Metamodel] | |
# metamodel | |
class C | |
class C::A | |
class C::B is C | |
class C::C is C is C::A | |
[Domain-specific] | |
# domain | |
class Attribute | |
[Basic] | |
# basic | |
enum Bool | |
[Composite] | |
# composite | |
class Seq | |
[Exceptions] | |
# exceptions | |
role R | |
role R::A | |
role R::B does R | |
role R::C does R does R::A | |
[Core] | |
# core | |
module Test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment