Skip to content

Commit

Permalink
Add :number as an alias for :numeric.
Browse files Browse the repository at this point in the history
  • Loading branch information
ztangent committed Dec 22, 2023
1 parent 5b34924 commit d6459d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/abstractions/abstractions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ include("interval.jl")
const DEFAULT_ABSTRACTIONS = Dict(
:boolean => BooleanAbs,
:integer => IntervalAbs{Int},
:number => IntervalAbs{Float64},
:numeric => IntervalAbs{Float64}
)
1 change: 1 addition & 0 deletions src/builtins.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Mapping from PDDL data types to Julia types and default values.
error("Unknown datatype: $name")
datatype_def(::Val{:boolean}) = (type=Bool, default=false)
datatype_def(::Val{:integer}) = (type=Int, default=0)
datatype_def(::Val{:number}) = (type=Float64, default=1.0)
datatype_def(::Val{:numeric}) = (type=Float64, default=1.0)

"""
Expand Down

0 comments on commit d6459d3

Please sign in to comment.