6

C# 用の ANTLR v4 のセットアップに問題があります。誰か助けてくれませんか? ここの公式サイトから参照されているビルド ターゲットを使用しています https://github.com/sharwell/antlr4cs

簡単な文法を追加しましたFoo.g

grammar Foo;
r  : 'hello' ID ;         // match keyword hello followed by an identifier
ID : [a-z]+ ;             // match lower-case identifiers
WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines

...そして、そのビルド アクションをAntlr4

今、私は次のエラーで立ち往生しています。

'´' came as a complete surprise to me
mismatched input 'grammar' expecting SEMI
4

2 に答える 2