You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> all_rule_grammar
1: Real =5
julia>add(x,y) = x+y
add (generic function with 1 method)
julia>add_rule!(all_rule_grammar, :(Real =add(Real, Real)))
1: Real =52: Real =add(Real, Real)
julia>add_rule!(all_rule_grammar, :(Real =add(Real, Real)))
1: Real =52: Real =add(Real, Real)
3: Real =add(Real, Real)
julia>add_rule!(all_rule_grammar, :(Real =add(Real, Real)))
1: Real =52: Real =add(Real, Real)
3: Real =add(Real, Real)
4: Real =add(Real, Real)
I remember now that we did this because the terminals 1 and true were treated as the same, meaning that whichever one was added first was the only rule allowed in the grammar.
end up with a very long grammar. I don't know why the rules are not merged properly.
The text was updated successfully, but these errors were encountered: