开发者

ANTLR dollar sign

开发者 https://www.devze.com 2023-02-18 03:46 出处:网络
I have been following this guy\'s tutorial (http://vimeo.com/groups/29150/videos/8137747), and they are great; the only开发者_Go百科 problem is that when I use the \"$\" sign in my grammar file, like

I have been following this guy's tutorial (http://vimeo.com/groups/29150/videos/8137747), and they are great; the only开发者_Go百科 problem is that when I use the "$" sign in my grammar file, like he does, I get an error and my grammar does not compile.

For example I cannot use ($channel = HIDDEN).

I followed each instruction of his guide step by step. Does anyone have the same problem?


You shouldn't use parenthesis but brackets, and you should terminate that statement with a semi-colon. So it's not:

($channel = HIDDEN)

but:

{$channel = HIDDEN;}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号