Skip to content

Instantly share code, notes, and snippets.

@antoniogamiz
Created June 2, 2019 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoniogamiz/992945353cb9fab964cc63a98e8aa6c2 to your computer and use it in GitHub Desktop.
Save antoniogamiz/992945353cb9fab964cc63a98e8aa6c2 to your computer and use it in GitHub Desktop.
weird thing
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";
}
[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