Skip to content

Commit

Permalink
Merge pull request #17 from Herb-AI/dev
Browse files Browse the repository at this point in the history
Bump version to 0.3.0
  • Loading branch information
THinnerichs authored Apr 25, 2024
2 parents eab1898 + bd56215 commit b8e747b
Show file tree
Hide file tree
Showing 7 changed files with 562 additions and 264 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Migrate code style to SciML
02be3454903ae3d03e1b8062794d96adabbdd814
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "HerbCore"
uuid = "2b23ba43-8213-43cb-b5ea-38c12b45bd45"
authors = ["Jaap de Jong <jaapdejong15@gmail.com>", "Nicolae Filat <N.Filat@student.tudelft.nl>", "Tilman Hinnerichs <t.r.hinnerichs@tudelft.nl>", "Sebastijan Dumancic <s.dumancic@tudelft.nl>"]
version = "0.2.0"
version = "0.3.0"

[compat]
julia = "^1.8"
Expand Down
42 changes: 25 additions & 17 deletions src/HerbCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,30 @@ include("rulenode.jl")
include("constraint.jl")
include("grammar.jl")

export
AbstractRuleNode,
RuleNode,
Hole,
HoleReference,

depth,
node_depth,
rulesoftype,
swap_node,
get_rulesequence,
rulesonleft,
get_node_at_location,
contains_hole,

Constraint,
AbstractGrammar
export
AbstractRuleNode,
RuleNode,
AbstractHole,
AbstractUniformHole,
UniformHole,
Hole,
HoleReference, depth,
node_depth,
rulesoftype,
swap_node,
get_rulesequence,
rulesonleft,
get_node_at_location,
get_path,
number_of_holes,
contains_hole,
contains_nonuniform_hole,
get_children,
get_rule,
isuniform,
isfilled,
hasdynamicvalue,
have_same_shape, AbstractConstraint,
AbstractGrammar

end # module HerbCore
4 changes: 2 additions & 2 deletions src/constraint.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Represents a constraint for a [`ContextSensitiveGrammar`](@ref).
Represents a constraint for a [`AbstractGrammar`](@ref).
Concrete implementations can be found in HerbConstraints.jl.
"""
abstract type Constraint end
abstract type AbstractConstraint end
2 changes: 1 addition & 1 deletion src/grammar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ If a rule is terminal, the corresponding list is empty.
- `log_probabilities::Union{Vector{Real}, Nothing}`: A list of probabilities for each rule.
If the grammar is non-probabilistic, the list can be `nothing`.
For concrete types, see [`ContextSensitiveGrammar`](@ref) within the `HerbGrammar` module.
For concrete types, see `ContextSensitiveGrammar` within the `HerbGrammar` module.
"""
abstract type AbstractGrammar end
Loading

0 comments on commit b8e747b

Please sign in to comment.