From d4656ad279b1c5aefbbe026829d91889f4a0ea0c Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Sun, 24 Jul 2016 05:21:05 -0500 Subject: [PATCH] Rebuild module structure --- src/ExpressionUtils.jl | 7 +++++++ src/utils.jl | 6 ------ test/runtests.jl | 4 ++++ test/utils.jl | 3 --- 4 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 src/ExpressionUtils.jl create mode 100644 test/runtests.jl diff --git a/src/ExpressionUtils.jl b/src/ExpressionUtils.jl new file mode 100644 index 0000000..7a085cf --- /dev/null +++ b/src/ExpressionUtils.jl @@ -0,0 +1,7 @@ +module ExpressionUtils + +export walk, expr_replace, expr_bind, expr_bindings + +include("utils.jl") + +end diff --git a/src/utils.jl b/src/utils.jl index f5111ce..50cbc42 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -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 @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl new file mode 100644 index 0000000..8281b57 --- /dev/null +++ b/test/runtests.jl @@ -0,0 +1,4 @@ +using FactCheck +using ExpressionUtils + +include("utils.jl") diff --git a/test/utils.jl b/test/utils.jl index e90820d..af1d38e 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -1,6 +1,3 @@ -using FactCheck -using ExpressionUtils - facts("Expression destructuring") do context("expr_bindings") do