Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge grammar updates to Master for publication #51

Merged
merged 33 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4bd82a8
Add a function to merge grammars
Whebon Jan 18, 2024
e9b6d9f
Add test for merging grammars
THinnerichs Jan 18, 2024
89eafbd
Merge pull request #43 from Herb-AI/merge-grammars
THinnerichs Jan 18, 2024
ce84c2a
Generalize utility function for checking symbols
ReubenJ Jan 18, 2024
bcfec29
Allow for module specification in `isvariable(...)`
ReubenJ Jan 18, 2024
78bf6df
Add tests for `isvariable` with specified module(s)
ReubenJ Jan 18, 2024
57e7be7
Add test to show `add_rule!` failing quietly
ReubenJ Jan 18, 2024
a017396
Update `add_rule!` to throw an error
ReubenJ Jan 18, 2024
08f7973
small clarification
sebdumancic Jan 18, 2024
3ebcc08
Merge pull request #46 from Herb-AI/add_rule_fail_audibly
IssaHanou Jan 18, 2024
370cc13
Merge pull request #45 from Herb-AI/fix-isvariable
IssaHanou Jan 19, 2024
8d93757
Add test to show `add_rule!` type coercion bug
ReubenJ Jan 19, 2024
5a031ff
Use strict equality in `add_rule!`
ReubenJ Jan 19, 2024
ba2cdba
Merge pull request #49 from Herb-AI/bug/add_rule_type_coercion
THinnerichs Jan 19, 2024
7d3c15b
merge cfg with csg
sourceCode4 Jan 18, 2024
6081a74
remove commented exports
sourceCode4 Jan 18, 2024
318cc98
factor out parsing and normalization of PCSG
sourceCode4 Jan 18, 2024
12573f0
add add_rule! for probabilistic grammar
sourceCode4 Jan 18, 2024
ee5a422
add tests for probabilistic grammar
sourceCode4 Jan 18, 2024
d4031ed
remove non existent export
sourceCode4 Jan 19, 2024
952abfe
merge grammar_io functions and adapt the respective tests
sourceCode4 Jan 19, 2024
ee101d0
remove the ugly return type annotation
sourceCode4 Jan 19, 2024
13f0c72
make one test use @cfgrammar
sourceCode4 Jan 19, 2024
f1e38d5
Fix pretty-printing expressions with Holes
THinnerichs Feb 6, 2024
c7bb3e7
Update introduction
THinnerichs Feb 7, 2024
10d5a2a
Add test to show that empty grammars cannot be created
ReubenJ Feb 22, 2024
360bc19
Fix added test for empty grammars
ReubenJ Feb 22, 2024
014731e
Add type annotations in `expr2csgrammar`
ReubenJ Feb 22, 2024
d6d79c7
Merge pull request #54 from Herb-AI/bug/empty-grammar
THinnerichs Feb 26, 2024
24c5c8c
Update HerbCore dependency
THinnerichs Feb 26, 2024
7ccaa2e
Update HerbCore dependency
THinnerichs Feb 26, 2024
e4664e9
Grammar -> AbstractGrammar according to HerbCore 0.2
THinnerichs Feb 26, 2024
d9f62f8
Merge pull request #56 from Herb-AI/HerbCore-0.2
THinnerichs Feb 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "HerbGrammar"
uuid = "4ef9e186-2fe5-4b24-8de7-9f7291f24af7"
authors = ["Sebastijan Dumancic <[email protected]>", "Jaap de Jong <[email protected]>", "Nicolae Filat <[email protected]>", "Piotr Cichoń <[email protected]>"]
version = "0.1.0"
version = "0.2.0"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand All @@ -11,11 +11,11 @@ TreeView = "39424ebd-4cf3-5550-a685-96706a953f40"
HerbCore = "2b23ba43-8213-43cb-b5ea-38c12b45bd45"

[compat]
AbstractTrees = "0.4"
DataStructures = "0.17,0.18"
TreeView = "0.5"
HerbCore = "0.1.0"
julia = "1.8"
AbstractTrees = "^0.4"
DataStructures = "^0.18"
TreeView = "^0.5"
HerbCore = "^0.2.0"
julia = "^1.8"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# Grammar.jl
[![Build Status](https://github.com/Herb-AI/HerbGrammar.jl/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/Herb-AI/HerbGrammar.jl/actions/workflows/CI.yml?query=branch%3Amaster)
[![Dev-Docs](https://img.shields.io/badge/docs-latest-blue.svg)](https://Herb-AI.github.io/Herb.jl/dev)

# HerbGrammar.jl

This package contains functionality for declaring grammars for the Herb Program Synthesis framework.

For full documentation please see the [`Herb.jl` documentation](https://herb-ai.github.io/Herb.jl/dev/).

## Getting started
To use this project, initialize the project with
For a quick tutorial on how to get started with using `HerbSearch.jl` have a look at our [introductory tutorial](https://herb-ai.github.io/Herb.jl/dev/get_started/).

If you want to help developing this project, initialize the project with
```shell
julia --project=. -e 'using Pkg; Pkg.instantiate()'
```
Expand Down
15 changes: 1 addition & 14 deletions src/HerbGrammar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ include("rulenode_operators.jl")
include("utils.jl")
include("nodelocation.jl")


include("cfg/cfg.jl")
include("cfg/probabilistic_cfg.jl")

include("csg/csg.jl")
include("csg/probabilistic_csg.jl")

Expand All @@ -25,18 +21,13 @@ export
ContextFree,
ContextSensitive,

ContextFreeGrammar,

ContextSensitiveGrammar,
AbstractRuleNode,
RuleNode,
Hole,
NodeLoc,

ProbabilisticCFG,

@cfgrammar,
expr2cfgrammar,
max_arity,
isterminal,
iseval,
Expand All @@ -56,12 +47,11 @@ export

@csgrammar,
expr2csgrammar,
cfg2csg,
clearconstraints!,
addconstraint!,
merge_grammars!,

@pcfgrammar,
expr2pcfgrammar,

@pcsgrammar,
expr2pcsgrammar,
Expand All @@ -77,9 +67,6 @@ export
containedin,
subsequenceof,
has_children,
store_cfg,
read_cfg,
read_pcfg,
store_csg,
read_csg,
read_pcsg,
Expand Down
155 changes: 0 additions & 155 deletions src/cfg/cfg.jl

This file was deleted.

111 changes: 0 additions & 111 deletions src/cfg/probabilistic_cfg.jl

This file was deleted.

Loading
Loading