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

3 !=3 is not parsed as 3 != 3 #7

Open
FROGGS opened this issue Mar 26, 2014 · 0 comments
Open

3 !=3 is not parsed as 3 != 3 #7

FROGGS opened this issue Mar 26, 2014 · 0 comments

Comments

@FROGGS
Copy link
Member

FROGGS commented Mar 26, 2014

std thinks that 3 !=3 is about assigning the negated three instead of a comparision.
See: https://rt.perl.org/Ticket/Update.html?id=121108

./viv -e 'say 1 != 3'
[...]
└─VAST::SYM_infix__S_BangEqual, BEG: 6, END: 8, SYM: !=,
TEXT: !=, WS: 1, _from: 8, _op: VAST::infix__S_BangEqual,
_pos: 8, _specific: 1, assoc: chain, dba: chaining,
diffy: 1, iffy: 1, prec: m=, pure: 1
[...]

./viv -e 'say 1 !=3'
[...]
└─VAST::SYM_infix__S_Equal, BEG: 7, END: 8, SYM: =, TEXT: =,
_from: 8, _op: VAST::infix__S_Equal, _pos: 8,
_specific: 1, assoc: right, dba: list assignment,
fiddly: 1, prec: i=, pure: 0
[...]

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

No branches or pull requests

1 participant