Skip to content

Commit efb432b

Browse files
committed
Add some documentation about signature argument to pirop_mapper.
1 parent 87b52fb commit efb432b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/QAST/Operations.nqp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ class QAST::Operations {
176176
}
177177

178178
# Returns a mapper closure for turning an operation into a PIR op.
179+
# The signature argument consists of characters indicating the
180+
# register types and conversions. The characters are:
181+
# P,S,I,N PMC, string, int, or num register
182+
# Q keyed PMC, next character indicates type of key
183+
# s string register or constant
184+
# i int register or constant
185+
# n num register or constant
186+
# r any register result
187+
# v void (no result)
188+
# 0-9 use the nth input operand as the output result of this operation
179189
sub pirop_mapper($pirop, $sig) {
180190
# Parse arg types out.
181191
my @arg_types := nqp::split('', $sig);

0 commit comments

Comments
 (0)