-
Notifications
You must be signed in to change notification settings - Fork 100
Ternary has precedence over BinaryOp::In #122
Copy link
Copy link
Closed
Description
(foo ? foo : 2 in L)
byond parses this as
((foo ? foo : 2) in L)
but we parse it as
(foo ? foo : (2 in L))
BinaryOp {
op: In,
lhs: Base {
unary: [],
term: Spanned {
location: Location {
file: FileId(
2,
),
line: 22,
column: 15,
},
elem: Int(
2,
),
},
follow: [],
},
rhs: Base {
unary: [],
term: Spanned {
location: Location {
file: FileId(
2,
),
line: 22,
column: 20,
},
elem: Ident(
"L",
),
},
follow: [],
},
}
Reactions are currently unavailable