Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Commit

Permalink
Rebuild module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 24, 2016
1 parent c6d2c91 commit d4656ad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 7 additions & 0 deletions src/ExpressionUtils.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module ExpressionUtils

export walk, expr_replace, expr_bind, expr_bindings

include("utils.jl")

end
6 changes: 0 additions & 6 deletions src/utils.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
module ExpressionUtils

export walk, expr_replace, expr_bind, expr_bindings

immutable Remove end

# Recursively walk an Expr, applying a function to each subexpr and leaf to
Expand Down Expand Up @@ -109,5 +105,3 @@ function expr_replace(ex, template, out)
bindings = expr_bindings(ex, template)
expr_bind(remove_quote_block(out), bindings)
end

end # module ExpressionUtils
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using FactCheck
using ExpressionUtils

include("utils.jl")
3 changes: 0 additions & 3 deletions test/utils.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using FactCheck
using ExpressionUtils

facts("Expression destructuring") do

context("expr_bindings") do
Expand Down

0 comments on commit d4656ad

Please sign in to comment.