FSLex 未知错误
我的 FSLex 遇到了一些无法解决的问题...我所知道的是 fslex.exe 以代码 1 退出...
顶部的 F# 代码在 F# Interactive 中进行了测试,因此问题不存在(我看不出如何)。
词法分析器: http://pastebin.com/qnDnUh59
和 Parser.fsi: http://pastebin.com/sGyLqZbN
谢谢, 拉蒙.
I got some problem with my FSLex which I can't solve... All I know is that fslex.exe exited with code 1...
The F# code at the top was tested in F# Interactive, so the problem isn't there (I can't see how).
Lexer:
http://pastebin.com/qnDnUh59
And Parser.fsi:
http://pastebin.com/sGyLqZbN
Thanks,
Ramon.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
非零错误意味着词法分析器失败,通常它也会描述失败。当我编译时,我得到了
exited with code 1
以及以下内容:Lexer does not like char Lites Outside of Quotes, and it does not Understanding the meaning of
\w
任何一个。根据FsLex源代码,FsLex仅理解以下转义序列:你的词法分析器的这个固定版本对我来说编译得很好: http://pastebin.com/QGNk3VKD
Non-zero error means the lexer failed, usually it'll describe the failure too. When I compile, I get
exited with code 1
along with this:Lexer doesn't like char literals outside of quotes, and it doesn't understand the meaning of
\w
either. According to FsLex source code, FsLex only understands the following escape sequences:This fixed version of your lexer compiles fine for me: http://pastebin.com/QGNk3VKD