-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update landing page and started guide
- Loading branch information
1 parent
646da48
commit 6c95256
Showing
12 changed files
with
139 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/src/HerbConstraints.md → docs/src/HerbConstraints/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# [HerbEvaluation.jl Documentation](@id HerbEvaluation_docs) | ||
|
||
```@meta | ||
CurrentModule=HerbEvaluation | ||
``` | ||
|
||
```@autodocs | ||
Modules = [HerbEvaluation] | ||
Order = [:type, :const, :macro, :function] | ||
``` | ||
|
||
## Index | ||
|
||
```@index | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Architecture and core concepts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Getting Started | ||
|
||
You can either paste this code into the Julia REPL or into a seperate file, e.g. `get_started.jl`. | ||
|
||
```julia | ||
using HerbSearch, HerbData, HerbInterpret | ||
|
||
# define our very simple context-free grammar | ||
# Can add and multiply an input variable x or the integers 1,2. | ||
g = @cfgrammar begin | ||
Number = |(1:2) | ||
Number = x | ||
Number = Number + Number | ||
Number = Number * Number | ||
end | ||
|
||
problem = Problem([IOExample(Dict(:x => x), 2x+1) for x ∈ 1:5]) | ||
solution = search(g₁, problem, :Number, max_depth=3) | ||
|
||
test_with_input(SymbolTable(g₁), solution, Dict(:x => 6)) | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Installation Guide | ||
|
||
Before installing Herb.jl, ensure that you have a running Julia distribution installed (Julia version 1.7 and above were tested). | ||
|
||
Thanks to Julia's package management, installing Herb.jl is very straighforward. | ||
Activate the default Julia REPL using | ||
|
||
```shell | ||
julia | ||
``` | ||
|
||
or from within one of your projects using | ||
|
||
```shell | ||
julia --project=. | ||
``` | ||
|
||
From the Julia REPL run | ||
```julia | ||
] | ||
add Herb | ||
``` | ||
|
||
or instead running | ||
|
||
```julia | ||
import Pkg | ||
Pkg.add("Herb") | ||
``` | ||
|
||
which will both install all dependencies automatically. | ||
|
||
And just like this you are done! Welcome to Herb.jl! | ||
|