Fix parser order
This commit is contained in:
parent
e76e11535d
commit
a5236a9af8
1 changed files with 4 additions and 4 deletions
|
@ -149,10 +149,6 @@ module Mm2ep
|
|||
ex.value = BoolValue.new(l.value.to_s)
|
||||
end
|
||||
|
||||
rule 'expr : NOT_OP expr %prec UMINUS' do |ex, l, e|
|
||||
ex.value = NotOp.new(e.value)
|
||||
end
|
||||
|
||||
rule 'expr : expr OR_OP expr' do |ex, l, e, r|
|
||||
ex.value = OrOp.new(l.value, r.value)
|
||||
end
|
||||
|
@ -165,6 +161,10 @@ module Mm2ep
|
|||
ex.value = e.value
|
||||
end
|
||||
|
||||
rule 'expr : NOT_OP expr %prec UMINUS' do |ex, l, e|
|
||||
ex.value = NotOp.new(e.value)
|
||||
end
|
||||
|
||||
rule 'expr : VAR EQ_OP F_BOOL' do |ex, v, eq, n|
|
||||
ex.value = EqOp.new(
|
||||
VarValue.new(v.value.to_s),
|
||||
|
|
Loading…
Reference in a new issue