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