开发者

ANTLR dollar sign

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜