如何在ANTLR语法中切换默认和隐藏令牌通道

时间:2015-01-14 09:50:51

标签: switch-statement antlr token channel

我有像这样的解析器规则

if_stmt : IF_T condition THEN_T
          {
           /* Here I would like to change the channel and iterate through the tokens
              from hidden channel*/
           code.....
           /* Here I would like to change it to default token channel again */
          }

0 个答案:

没有答案