Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add some documentation about signature argument to pirop_mapper.
  • Loading branch information
pmichaud committed Mar 19, 2013
1 parent 87b52fb commit efb432b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/QAST/Operations.nqp
Expand Up @@ -176,6 +176,16 @@ class QAST::Operations {
}

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

0 comments on commit efb432b

Please sign in to comment.