fix: change lhs of Assign to lvalue
This commit is contained in:
parent
03fdbe01d9
commit
2588c8287d
@ -104,7 +104,7 @@ object parser {
|
||||
| While("while" ~> `<expr>` <~ "do", `<stmt>` <~ "done")
|
||||
| Block("begin" ~> `<stmt>` <~ "end")
|
||||
| VarDecl(`<type>`, `<ident>` <~ "=", `<rvalue>`)
|
||||
| Assign(`<ident>` <~ "=", `<rvalue>`)
|
||||
| Assign(`<lvalue>` <~ "=", `<rvalue>`)
|
||||
private lazy val `<lvalue>`: Parsley[LValue] =
|
||||
`<pair-elem>` | `<ident-or-array-elem>`
|
||||
private lazy val `<rvalue>`: Parsley[RValue] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user