[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tell a rule to shift instead of reduce?
From: |
Akim Demaille |
Subject: |
Re: Tell a rule to shift instead of reduce? |
Date: |
Sun, 22 Dec 2013 17:43:05 +0100 |
Le 17 déc. 2013 à 09:25, Adam Smalin <address@hidden> a écrit :
> I still need help with this. I rewrote it maybe this will be more clear?
>
> I want to allow this
>
> var = var
> var, var = var
> var = var, var
Maybe I am missing something, by how about clearly stating
that you can have several lvalues and rvalues? The following
grammar has no conflict, and requires no precedence/associativity.
%%
body:
lvals '=' rvals
;
lvals:
lval
| lvals ',' lval
;
rvals:
rval
| rvals ',' rval
;
rval: "var"
lval: "var"
Re: Tell a rule to shift instead of reduce?,
Akim Demaille <=
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/23
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/23
- Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/24
Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/22