Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Begin to document Metamethods
  • Loading branch information
Mouq committed Nov 13, 2014
1 parent ee0ea36 commit 1fa6313
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htmlify.p6
Expand Up @@ -354,7 +354,7 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
%attr = :kind<type>,
:categories($tg.types{$name}.?categories//''),
}
when 'variable'|'sigil'|'twigil'|'declarator'|'quote' {
when 'variable'|'sigil'|'twigil'|'declarator'|'quote'|'syntax' {
# TODO: More types of syntactic features
%attr = :kind<syntax>,
:categories($subkinds),
Expand Down
43 changes: 43 additions & 0 deletions lib/Language/mop.pod
@@ -0,0 +1,43 @@
=begin pod
=TITLE Meta-Object Protocol
TODO
=head1 Metamethods
TODO
=head2 X<WHAT|syntax,WHAT>
The type object of the type.
=head2 X<WHICH|syntax,WHICH>
The object's identity value.
=head2 X<WHO|syntax,WHO>
The package supporting the object.
=head2 X<WHERE|syntax,WHERE>
The memory address of the object.
=head2 X<HOW|syntax,HOW>
The metaclass object: "Higher Order Workings"
=head2 X<WHY|syntax,WHY>
The attached Pod value.
=head2 X<DEFINITE|syntax,DEFINITE>
The object has a valid concrete representation.
=head2 X<VAR|syntax,VAR>
Returns the underlying C<Scalar> object, if there is one.
=end pod

0 comments on commit 1fa6313

Please sign in to comment.