parrotcode: Abstract syntax tree nodes for tcl expressions. | |
Contents | Language Implementations | TCL |
PAST - Abstract syntax tree nodes for tcl expressions.
This file implements the various abstract syntax tree nodes needed for tcl expressions. The currently defined ast nodes:
PAST::Node - base class for all ast nodes
PAST::DynamicCommand - a (dynamic) tcl command to be evaluated
PAST::StaticCommand - a (static) tcl command to be evaluated
PAST::Cond - a conditional expression
PAST::Op - a operation
PAST::MathFunc - a math function
PAST::Val - a constant value
PAST::Var - a variable
The PAST::Node
class itself is derived from Hash
, so that it's easy to store and retrieve attributes from each node object.
onload()
PAST::*
classes.init()
PAST::Node
object.set_node(PMC match)
source()
pos()
__dump(PMC dumper, STR label)
Data::Dumper
.Copyright (C) 2005-2008, The Perl Foundation.
This is free software; you may redistribute it and/or modify it under the same terms as Parrot.
|