Skip to content

Commit

Permalink
created IO stop for precompilation #58
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Feb 16, 2024
1 parent f93014d commit a651038
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Reduce"
uuid = "93e0c654-6965-5f22-aba9-9c1ae6b3c259"
authors = ["Michael Reed"]
version = "1.2.12"
version = "1.2.13"

[deps]
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
Expand Down
14 changes: 14 additions & 0 deletions src/Reduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,20 @@ macro load_package(pkg...)
load_package(pkg...)
end

"""
Reduce.stop()
Kills the REDUCE process without starting a new instance.
This call is required to stop the IO if Reduce is used in a precompiled package.
## Examples
```julia-repl
julia> Reduce.stop()
```
"""
stop() = kill(rs)

"""
Reduce.Reset()
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using Test
@test try; Expr(:type,false,:x) |> RExpr; false; catch; true; end
@test try; :(@time f(x)) |> RExpr; false; catch; true; end
@test (x = Expr(:function,:fun,:(return y=a^3+3*a^2*b+3*a*b^2+b^3)); x==x |> Reduce.factor |> expand)
@test try; Expr(:for,:(i=2:34),:(product(i))) |> RExpr |> Reduce.parse; false; catch; true; end
#@test try; Expr(:for,:(i=2:34),:(product(i))) |> RExpr |> Reduce.parse; false; catch; true; end

This comment has been minimized.

Copy link
@chakravala

chakravala Feb 16, 2024

Author Owner

feature is being deprectated for now #59

@test R"begin; 1:2; end" |> Reduce.parse |> RExpr |> string == "1:2 "
@test latex(:(x+1)) |> typeof == String
@test length(:(x+y)) |> typeof == Int
Expand Down

2 comments on commit a651038

@chakravala
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/101017

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.13 -m "<description of version>" a6510389e0b758cbba290737fc7782c820e629ec
git push origin v1.2.13

Please sign in to comment.