NAME ^

POST - Parrot opcode syntax tree

DESCRIPTION ^

This file implements the various opcode syntax tree nodes for compiling programs in Parrot.

POST Node types ^

POST::Node ^

POST::Node is the base class for all POST nodes. It's derived from class PCT::Node (see compilers/pct/src/PCT/Node.pir).

result([value])

Get/set

result([value])

Get or set the result value of this node. If the result value is set to another POST node, then that node's result is used as the result of the current node.

get_string() # vtable method

Returns the result of the current node as a string.

push_pirop(pirop [,arglist :slurpy] [,adverbs :slurpy :named])

Shortcut for creating and adding a new POST::Op node with opcode pirop and any supplied arguments or options. Returns the newly created node.

escape(str)

Return str as a PIR constant string.

POST::Op ^

POST::Op nodes represents any PIR opcodes.

pirop([opcode])

Get/set the opcode type for this node.

AUTHOR ^

Patrick Michaud <pmichaud@pobox.com> is the author and maintainer. Please send patches and suggestions to the Parrot porters or Perl 6 compilers mailing lists.

HISTORY ^

2007-11-21 Significant refactor as part of Parrot Compiler Toolkit

COPYRIGHT ^

Copyright (C) 2006-2008, The Perl Foundation.


parrot