Skip to content

Commit

Permalink
Cursor calls set_default_parent.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 21, 2011
1 parent 4371629 commit 7e325a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Regex/Cursor.pir
Expand Up @@ -179,6 +179,11 @@ grammars.
how."add_attribute"(type_obj, attr)
attr = NQPAttribute."new"("&!regex" :named("name"))
how."add_attribute"(type_obj, attr)

# Set default parent.
.local pmc NQPMu
NQPMu = get_hll_global "NQPMu"
how."set_default_parent"(type_obj, NQPMu)

# Compose meta-object.
how."compose"(type_obj)
Expand Down

0 comments on commit 7e325a4

Please sign in to comment.