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

and can't be used in ⊼=/⊽= #42037

Closed
Seelengrab opened this issue Aug 27, 2021 · 3 comments
Closed

and can't be used in ⊼=/⊽= #42037

Seelengrab opened this issue Aug 27, 2021 · 3 comments
Labels
parser Language parsing and surface syntax

Comments

@Seelengrab
Copy link
Contributor

Seelengrab commented Aug 27, 2021

I think this was just missed as part of the infix expansions, or is there a reason these don't allow for their setindex variant? Looks like a parser failure to me.

MWE:

julia> a = [1]               
1-element Vector{Int64}:     
 1                           
                             
julia> a[1] = 2             
ERROR: syntax: unexpected "="
Stacktrace:                  
 [1] top-level scope         
   @ none:1                  
                             
julia> a[1] = 2             
ERROR: syntax: unexpected "="
Stacktrace:                  
 [1] top-level scope         
   @ none:1                  
@simeonschaub
Copy link
Member

We currently hard-code only a few operators that can be used as x= in the parser. We should probably just do that systematically for all binary operators.

@simeonschaub simeonschaub added the parser Language parsing and surface syntax label Aug 27, 2021
@GregPlowman
Copy link
Contributor

Ref #15964

@Seelengrab
Copy link
Contributor Author

Ah. Well, this is a duplicate then. Thanks for the reference! Looks like this takes more work though.. Maybe I should get on that pika julia parser I keep wanting to write..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Language parsing and surface syntax
Projects
None yet
Development

No branches or pull requests

3 participants