-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Could not parse TLC configuration in BlockingQueue.cfg: string matching regex '\z' expected but '{' found #208
Comments
Just some notes as I use this bug report as an opportunity to dig into the code a bit. So here's the error being raised: I suspect it's coming from this part of the lexer: After including the parser location in the error message, it became clear the parser is failing on the last line here, at the opening
(See https://github.com/lemmy/BlockingQueue/blob/3a66f46f6f5703f2863f71baaf0aedaaee58836f/BlockingQueue.cfg#L1-L4 for the source.) Indeed, the lexer defined in If this is currently a necessary limitation, then we can at least improve the documentation and the error reporting to help guide the user. If this is not a necessary limitation, I'd be interested in adding the support for handling sets in |
Why wasn't it possible to reuse TLC's config parser? |
Our conjecture was that the users are not writing .cfg files by hand. Rather they use whatever is produced by the TLA+ Toolbox. This obviously does not apply to the power users :-) It looks to me that the ability to define sets in .cfg is redundant, as one can do that directly in TLA+. That is what TLA+ Toolbox is doing, right? |
@lemmy, could you point us to the TLC's config parser, so we could evaluate the efforts of integrating with it? |
The VScode extension that appears to be popular, especially amongst new users, requires users to write the config file by hand. I believe it's considered a feature.
|
@lemmy, I am looking at
Are they documented anywhere? I can guess what |
I find |
I guess, |
|
The text was updated successfully, but these errors were encountered: