Special symbols in actions

Skip to end of metadata
Go to start of metadata

ANTLRMorph provides a set of special symbols you can use in actions within your morph grammar, and most of these symbols are inherited from ANTLR v3.

Syntax

Description

$enclosingRule.attr

 

$tokenLabel.prop
$tokenRef.prop

 

$rulelabel.attr
$ruleref.attr

 

$label

either a token label or token/rule list label like label+=expr.

$tokenref

 

$x::y

the only way to access the attributes within a dynamic scope
regardless of whether or not you are in the defining rule.

The following symbols are unique in morph.

Syntax

Description

$x.get("...")

x is an enclosing rule. this is used to retrieve the object you put into the parse tree node.

Labels:
  1. Jan 03, 2011

    Anonymous

    Discount [url=http://www.pickshoxshoes.com/\]nike shox[/url] all the hot sales, you will find [url=http://www.pickshoxshoes.com/\]nike shox shoes[/url] will be on the website, welcome to visit [url=http://www.pickshoxshoes.com/\]nike shoes[/url] store