0

Antlr3 は Mylexer.java を生成しません。私はAntlrWorksを使用しています...

文法が次のように始まるとき

文法マイレクサー;

myParser.java を生成します

それは単純なことのように見えます..理由は何だろうか..そして解決策は..エラーメッセージは表示されません。

4

1 に答える 1

0

I found a way. AntlrWorks 1.4 seems to have a bug. When I pressed ctrl+shift+G to generate it did not give an error message (in fact, I got that compilation was ok) and generated a parser file only. The cursor was not on the first line of the source file when that happened.

WHen I pressed ctrl+shift+G in the first line, I got an error message and when I fixed those, a lexer file was generated too.

于 2010-05-29T13:11:30.460 に答える