Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
giopaglia committed Nov 13, 2023
1 parent c0609fe commit af7c7e1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ julia> using Graphs
# Instantiate a Kripke frame with 5 worlds and 5 edges
julia> worlds = SoleLogics.World.(1:5)

julia> edges = Edge.([ (1, 2), (1, 3), (2, 4), (3, 4), (3, 5)])
julia> edges = Edge.([(1,2), (1,3), (2,4), (3,4), (3,5)])

julia> fr = SoleLogics.ExplicitCrispUniModalFrame(worlds, Graphs.SimpleDiGraph(edges))
SoleLogics.ExplicitCrispUniModalFrame{SoleLogics.World{Int64}, SimpleDiGraph{Int64}} with
Expand Down
2 changes: 1 addition & 1 deletion pluto-demo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ begin
using Graphs

worlds = SoleLogics.World.(1:5)
edges = Edge.([ (1, 2), (1, 3), (2, 4), (3, 4), (3, 5)])
edges = Edge.([(1,2), (1,3), (2,4), (3,4), (3,5)])
fr = SoleLogics.ExplicitCrispUniModalFrame(worlds, Graphs.SimpleDiGraph(edges))
end

Expand Down
5 changes: 3 additions & 2 deletions src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
│ ├── BoxRelationalConnective (e.g., [G])
│ └── ...
└── ...
¬ \
Also:
const Operator = Union{Connective,Truth}
const SyntaxToken = Union{Connective,SyntaxLeaf}
Expand Down Expand Up @@ -864,7 +864,8 @@ function syntaxstring(
return tokstr
elseif arity(tok) == 2 && !function_notation
# Infix notation for binary operators
"$(_binary_infix_syntaxstring(tok, children(φ)[1])) "*

"$(_binary_infix_syntaxstring(tok, children(φ)[1])) " *
"$tokstr $(_binary_infix_syntaxstring(tok, children(φ)[2]))"
else
# Infix notation with arity != 2, or function notation
Expand Down
2 changes: 1 addition & 1 deletion src/docstrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ See also [`parseformula`](@ref),
In the case of a syntax tree, `syntaxstring` is a recursive function that calls
itself on the syntax children of each node. For a correct functioning, the `syntaxstring`
must be defined (including `kwargs...`) for every newly defined
must be defined (including the `kwargs...` part!) for every newly defined
`SyntaxToken` (e.g., `SyntaxLeaf`s, that is, `Atom`s and `Truth` values, and `Operator`s),
in a way that it produces a
*unique* string representation, since `Base.hash` and `Base.isequal`, at least for
Expand Down
2 changes: 1 addition & 1 deletion src/modal-logic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ julia> fmodal = randformula(Random.MersenneTwister(14), 3, [p,q], SoleLogics.BAS
# Nodes are called worlds, and the edges are relations between worlds.
julia> worlds = SoleLogics.World.(1:5) # 5 worlds are created, numerated from 1 to 5
julia> edges = Edge.([ (1, 2), (1, 3), (2, 4), (3, 4), (3, 5)])
julia> edges = Edge.([(1,2), (1,3), (2,4), (3,4), (3,5)])
julia> kframe = SoleLogics.ExplicitCrispUniModalFrame(worlds, Graphs.SimpleDiGraph(edges))
Expand Down

0 comments on commit af7c7e1

Please sign in to comment.