diff --git a/Project.toml b/Project.toml index b268ead..6a97932 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "HerbInterpret" uuid = "5bbddadd-02c5-4713-84b8-97364418cca7" authors = ["Tilman Hinnerichs ", "Jaap de Jong ", "Sebastijan Dumancic ", "Reuben Gardos Reid "] -version = "0.1.2" +version = "0.1.3" [deps] HerbCore = "2b23ba43-8213-43cb-b5ea-38c12b45bd45" @@ -9,8 +9,8 @@ HerbGrammar = "4ef9e186-2fe5-4b24-8de7-9f7291f24af7" HerbSpecification = "6d54aada-062f-46d8-85cf-a1ceaf058a06" [compat] -HerbCore = "^0.2.0" -HerbGrammar = "^0.2.0" +HerbCore = "^0.3.0" +HerbGrammar = "^0.3.0" HerbSpecification = "^0.1.0" julia = "^1.8" diff --git a/src/interpreter.jl b/src/interpreter.jl index 3a8f6f9..054db77 100644 --- a/src/interpreter.jl +++ b/src/interpreter.jl @@ -74,7 +74,7 @@ end """ execute_on_input(tab::SymbolTable, expr::Any, input::Vector{T})::Vector{<:Any} where T <: Dict{Symbol, <:Any} -Wrapper around [`execute_on_input(tab::SymbolTable, expr::Any, input::Dict{Symbol, T})`](@ref) to execute all inputs given as an array. +Wrapper around [`execute_on_input`](@ref) to execute all inputs given as an array. # Arguments - `tab::SymbolTable`: A symbol table containing predefined symbols and their associated values or functions. @@ -91,7 +91,7 @@ end """ execute_on_input(grammar::AbstractGrammar, program::RuleNode, input::Dict{Symbol, T})::Any where T -Converts a `RuleNode` program into an expression using a given `grammar`, then evaluates this expression with a single input dictionary `input` and a symbol table derived from the `grammar` using [`execute_on_input(tab::SymbolTable, expr::Any, input::Dict{Symbol, T})`](@ref). +Converts a `RuleNode` program into an expression using a given `grammar`, then evaluates this expression with a single input dictionary `input` and a symbol table derived from the `grammar` using `execute_on_input(tab::SymbolTable, expr::Any, input::Dict{Symbol, T})`. # Arguments - `grammar::AbstractGrammar`: A grammar object used to convert the `RuleNode` into an executable expression. @@ -110,7 +110,7 @@ end """ execute_on_input(grammar::AbstractGrammar, program::RuleNode, input::Vector{T})::Vector{Any} where T <: Dict{Symbol, <:Any} -Converts a `RuleNode` program into an expression using a given `grammar`, then evaluates this expression for each input dictionary in a vector `input` and a symbol table derived from the `grammar` using [`execute_on_input(tab::SymbolTable, expr::Any, input::Dict{Symbol, T})`](@ref). +Converts a `RuleNode` program into an expression using a given `grammar`, then evaluates this expression for each input dictionary in a vector `input` and a symbol table derived from the `grammar` using `execute_on_input(tab::SymbolTable, expr::Any, input::Dict{Symbol, T})`. # Arguments - `grammar::AbstractGrammar`: A grammar object used to convert the `RuleNode` into an executable expression.