-
Notifications
You must be signed in to change notification settings - Fork 14
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
Block expressions #102
Comments
We never really planned on doing this but here is a possible syntax
|
Not only tables, everything else that uses {} will cause issues
what is |
figuring out if it's a code block and not a table is the issue though. |
The solutions to these kind of problems are heuristics. With a heuristic parser it should be able to efficiently parse and differentiate between them. |
Also about the ambiguity, anything in the form of |
but {a=3} is also a table, but is also completely valid as a code block too |
No idea what this is lol |
yeah there is too much ambiguity to this. The only solution to not be ambiguous is to always require a trailing comma on single element tables |
it is sort of making an educated guess |
ah, I see |
a hypothetical solution would be to have something like |
Or another solution is that unless it has a edit: just to be specific, I mean implicitly nothing, |
I don't like this idea myself, feels a bit too verbose ( |
That may be the best solution, but it would require a bunch more moving around in the code for the parser |
Currently, Clue does not support (first-class) block expressions.
The main challenge with introducing block expressions to Clue is how to distinguish them from table expressions.
The text was updated successfully, but these errors were encountered: