You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm converting a YACC grammar file to a Logos lexer, and I'm getting this strange and very unhelpful error message. Every macro-debug process I have tried has literally yielded no additional output.
(All of the RegExps are not complete; I am going to find-and-replace all of the reocurring works like 'skip' and 'StringLiteralSingle')
I do think I found the error. It's an enum length problem. When I comment out every line until the error goes away it compiles just fine. When I uncomment one line, it errors. The enum is too long I believe.
Hello @UnexDev, can you please provide the error message too?
the faulty line is probably showed in there :)
I omitted irrelevant details before, but here is the full error message.
--> crates\parser\src\lexer.rs:41:49
|
41 | #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Logos)]
| ^^^^^
|
= help: message: attempt to subtract with overflow
error: could not compile `parser` (lib) due to 1 previous error
I'm converting a YACC grammar file to a Logos lexer, and I'm getting this strange and very unhelpful error message. Every macro-debug process I have tried has literally yielded no additional output.
(All of the RegExps are not complete; I am going to find-and-replace all of the reocurring works like 'skip' and 'StringLiteralSingle')
The text was updated successfully, but these errors were encountered: