Skip to content

Commit

Permalink
removed piece of code (it was an ugly patch that now is not more needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-milella committed Nov 4, 2023
1 parent 719f2cb commit 2a27f4c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ end
function (op::Operator)(children::NTuple{N,Formula}) where {N}
if arity(op) == 2 && length(children) > arity(op)
if associativity(op) == :right
children = (c1, op(children[2:end]))
children = (children[1], op(children[2:end]))
else
children = (op(children[1:end-1]), children[end])
end
Expand All @@ -588,9 +588,6 @@ function (op::Operator)(children::NTuple{N,Formula}) where {N}
# println(typeof.(children))
end

# TODO is the purpose of this to remove ambiguity? TODO place properly, and add comment
(c::Truth)(::Tuple{}) = c

############################################################################################
#### SyntaxBranch ##########################################################################
############################################################################################
Expand Down

0 comments on commit 2a27f4c

Please sign in to comment.