Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add .type to PAST::Var nodes. Also twiddle the build a bit to make su…
…re we build changes to the PAST extensions.
- Loading branch information
Showing
4 changed files
with
22 additions
and
1,729 deletions.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # This file contains extensions to PAST for integration with 6model. | ||
|
|
||
| .namespace [ 'PAST';'Var' ] | ||
|
|
||
| =item type([value]) | ||
|
|
||
| Accessor method -- sets/returns the type object for the type that this | ||
| will evaluate to. Note that this really is the type object itself, not | ||
| some PAST that will produce it or a name that it can be looked up by. | ||
|
|
||
| =cut | ||
|
|
||
| .sub 'type' :method | ||
| .param pmc value :optional | ||
| .param int has_value :opt_flag | ||
| .tailcall self.'attr'('type', value, has_value) | ||
| .end |
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
Oops, something went wrong.