开发者

Crazy errors with FsLex and FsYacc [closed]

开发者 https://www.devze.com 2023-01-02 04:29 出处:网络
This question is unlikely to help any future visitors; it is开发者_运维技巧 only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not g
This question is unlikely to help any future visitors; it is开发者_运维技巧 only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

I am trying to compile this project:

http://ramon.org.il/Here.zip

But I get a bunch of non-sense errors. They got text I am familiar with, but in the position there is nothing like that (like unexpected ')' at an empty row).

Help me, please!


It seems to me that the error message (at least the first one I checked) is on a correct line (but an invalid column on that line). I'd think that this is a by-design limitation, but I'm not 100% sure.

Anyway, line 25 of the file LispParser.fsy looks suspicious to me:

25: ExprList: Expr { List($1, -1, Null) ] }
26:         | Expr ExprList { List($1, -1, $2) }

The expression in curly braces is List($1, -1, Null) ] and there is a closing square bracket ] but not an opening one. So, I think the bracket probably shouldn't be there. I didn't try it, but I think that the remaining errors are just consequence of this issue.


Many small mistake, I didn't understand at all how it works.

The bracket Tomas found was one of the mistakes (a typo), but the whole concept was wrong.

Solved now.

0

精彩评论

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

关注公众号