^ used as an operator of the embedded tree, indicating that a specific token should become the root of the tree.
For example, the rule:
p : A B^ C;
creates the following AST:
B
/ \
A C
AST, . ( ) . "", ->, /, AST.
:
p : A B C;
, ASST "" ( node). , :
p : A B C -> C B A;
AST, p : A B^ C;, ^( ... ), / node. , :
p : A B C -> ^(B A C);
, p : A B^ C;.
:
share