-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add @deparse
macro
#72
Merged
Merged
Conversation
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
Co-authored-by: Yuto Horikawa <hyrodium@gmail.com>
hyrodium
force-pushed
the
feature/deparse
branch
from
October 16, 2023 14:29
31545f7
to
9f429dc
Compare
Hmm, not sure why the doctest fails.. julia> using Replay
[ Info: Precompiling Replay [dd78c5bf-19c4-4e9c-96ce-c3ec745c7812]
julia> @deparse 1+1
"1 + 1"
julia> @deparse sin(1f0+a)
"sin(1.0f0 + a)"
julia> @deparse f(x) = sin(x)/x # Sometimes not work as expected
"f(x) = begin\n sin(x) / x\n end\n"
julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 16 × AMD Ryzen 7 2700X Eight-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, znver1)
Threads: 1 on 16 virtual cores EDIT: I was forgetting to add |
@hyrodium How about julia --project=docs -e '
using Documenter: DocMeta, doctest
using Replay
DocMeta.setdocmeta!(Replay, :DocTestSetup, :(using Replay); recursive=true)
doctest(Replay)' |
nvm... b0063c4 looks good to me |
Merged
🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes #59, closes #56.