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
Program braces in phi-calculus expression #2754
Comments
@maxonfjvipon how about |
@yegor256 I'm just trying to figure out what we're trying to replace with I think we should decide what exactly syntax (or semantic) rule we replace with UPD: Or we should change program rule with something like this:
|
@maxonfjvipon what's wrong with |
@yegor256 here |
@maxonfjvipon I agree. Let's make it this way: |
@yegor256 so we establish that brackets |
@maxonfjvipon yes |
This is a canonical phi-calculus EBNF:
Here we assume that
program
is a special alpha binding where attribute isΦ
.In order not to write such top level alpha binding explicitly in every expression we decided to replace it with
{ }
brackets.Current Phi.g4 has
bindings
rule between{ }
brackets which seems wrong (because object is not always bindings).If we replace current rule
program: '{' bindings '}'
withprogram: '{' object '}'
(to be more canonical) then we get not really pretty phi expression, for example:{[x -> y]}
.I suggest to get rid of
{ }
brackets and write top level alpha binding withΦ
explicitly.@yegor256 WDYT?
The text was updated successfully, but these errors were encountered: