Documentation ANTLR如何执行角色操纵?

Documentation ANTLR如何执行角色操纵?,documentation,antlr,Documentation,Antlr,ANTLR 3似乎在其规则中使用了某种类似正则表达式的操作,有人知道它是否使用了自定义语法以及相关文档在哪里吗?来自ANTLR wiki: 另见和 Symbol |说明 ----------------+-------------------------------------------------------- $|属性 @|行动 ::|操作或动态作用域属性作用域说明符 :|规则定义 ; | 结束规则 ||备选方案 's'|字符或字符串文字 .

ANTLR 3似乎在其规则中使用了某种类似正则表达式的操作,有人知道它是否使用了自定义语法以及相关文档在哪里吗?

来自ANTLR wiki:


另见和

Symbol |说明
----------------+--------------------------------------------------------
$|属性
@|行动
::|操作或动态作用域属性作用域说明符
:|规则定义
;               | 结束规则
||备选方案
's'|字符或字符串文字
.               | 通配符
=|标签分配
+=|列表标签分配
[…]|参数或返回值规范
{…}行动
...             | 强迫作用;即使在回溯时也执行
(……)|子规则
+| 1个或更多
*| 0或更多
?               | 可选或语义谓词
不匹配
!               | 不包括在AST中
^|生成AST根节点
=>|始终执行谓词
->|重写规则
|令牌选项类规范ID
^(…)|树语法或重写元素
// ...          | 单行注释
/* ... */       | 多行注释

您可能应该编辑上一个问题()来展开它,而不是创建第二个问题。我不敢相信,在多次查看该页面后,我竟然错过了这个问题,谢谢!
Symbol          | Description
----------------+--------------------------------------------------------
$               | Attribute
@               | Action
::              | action or dynamically-scoped attribute scope specifier
:               | rule definition
;               | end rule
|               | alternative
's'             | char or string literal
.               | wildcard
=               | label assignment
+=              | list label assignment
[..]            | argument or return value spec
{...}           | action
...             | forced action; execute even while backtracking
(...)           | subrule
+               | 1 or more
*               | 0 or more
?               | optional or semantic predicate
~               | match not
!               | don't include in AST
^               | make AST root node
=>              | always execute predicate
->              | rewrite rule
<token options> | token option spec like ID<node=VarNode>
^(...)          | tree grammar or rewrite element
// ...          | single-line comment
/* ... */       | multi-line comment