Skip to content
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

let unexpectedly parsed as variable declaration #934

Open
null-a opened this issue Jan 5, 2020 · 0 comments
Open

let unexpectedly parsed as variable declaration #934

null-a opened this issue Jan 5, 2020 · 0 comments
Labels

Comments

@null-a
Copy link
Member

null-a commented Jan 5, 2020

This was reported on the mailing list.

I suspect this happens because the parser is doing something like the following: Both var and let are represented as similar "variable declaration" nodes in the AST, and are only distinguished by a flag on the node, which WebPPL is ignoring.

As mentioned in the original report, a small number of code boxes on probmods.org currently rely on this behavior, so we ought to ensure those are updated if we fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant