简体   繁体   English

奇怪的错误 Javacc 终端

[英]Strange Error Javacc Terminal

Here's the error:这是错误:

Exception in thread "main" ParseException: Encountered " <ID> "fibo "" at line 1, column 5.
Was expecting:
    "\u0440\u0430\u0432\u043d\u043e" ...

    at RussianL.generateParseException(RussianL.java:1084)
    at RussianL.jj_consume_token(RussianL.java:966)
    at RussianL.Assignmeth(RussianL.java:223)
    at RussianL.Smeth(RussianL.java:189)
    at RussianL.Lmeth(RussianL.java:151)
    at RussianL.Pmeth(RussianL.java:57)
    at RussianL.Start(RussianL.java:17)
    at RussianL.main(RussianL.java:6)

No where have i said that i want to use u0440 etc as my grammer for the code.没有我说过我想使用 u0440 等作为我的代码语法。 I have used actual words我用了实际的词

All help appreciated.所有帮助表示赞赏。

I'm fairly sure that this can be fixed by hand editing the XXXConstants.java file.我相当确定这可以通过手动编辑 XXXConstants.java 文件来解决。 Since that will get overwritten every time you run javacc, what you should do is write a script that will replace the funky strings that JavaCC produces with the nice strings that you want.由于每次运行 javacc 时都会被覆盖,因此您应该编写一个脚本,用您想要的漂亮字符串替换 JavaCC 生成的时髦字符串。 This might amount to simply replacing every ocurrence of "\\\\u4\u0026quot; with "\\u4\u0026quot;.这可能相当于简单地用“\\u4”替换每次出现的“\\\\u4”。\u003c/b>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM