repo.or.cz
/
parrot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
+ --debug is now --imcc-debug; make this more consistent with -D.
[parrot.git]
/
examples
/
tge
/
branch
/
lib
/
Branch.pir
blob
426d0da412e3582a2cb2637c1628a7d72de8288f
1
=head1 NAME
2
3
Branch - a sample branch node for Language::AttributeGrammar
4
5
=head1 DESCRIPTION
6
7
=cut
8
9
.namespace [ "Branch" ]
10
11
.sub "__onload" :load
12
.local pmc base
13
newclass base, "Branch"
14
addattribute base, "left" # left child
15
addattribute base, "right" # right child
16
.return ()
17
.end
18
19
# Local Variables:
20
# mode: pir
21
# fill-column: 100
22
# End:
23
# vim: expandtab shiftwidth=4: