-
Notifications
You must be signed in to change notification settings - Fork 474
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
New version: JuliaBUGS v0.3.0 #101435
New version: JuliaBUGS v0.3.0 #101435
Conversation
JuliaRegistrator
commented
Feb 22, 2024
•
edited
Loading
edited
- Registering package: JuliaBUGS
- Repository: https://github.com/TuringLang/JuliaBUGS.jl
- Created by: @sunxd3
- Version: v0.3.0
- Commit: 8f6395723a236f8ebe77c20ee00b4ea18454d90a
- Reviewed by: @sunxd3
- Reference: TuringLang/JuliaBUGS.jl@8f63957#commitcomment-139076110
- Description: Implementation of domain specific language (DSL) for probabilistic graphical models
The PR includes the following updates: * The `@bugs` macro that handle the Julia AST is simplified * Previously, expression like `lhs ~ rhs` are change to `Expr(:~, lhs, rhs)`; also ranges in indices and for loop are changed to the same form * These modifications of AST are removed, the only possible modification of AST now is filling in empty index, e.g. `x[]` is transformed to `x[:]` and `cumulative`, `density`, and `deviance` (these three are special functions, which all "take the distribution of the variable at first argument") * The parser is improved * Now we allow use Julia reserved words as variable names in the original BUGS, these words will be wrapped in `var""` * Now the errors are displayed the same way as the Julia parser, and throw the same exception `JuliaSyntax.ParseError` * The error messages are also improved, as more specialized error messages are created for different cases * Some bug fixes * Tests of both the parser and `@bugs` macro are made more clear --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Your If you want to prevent this pull request from being auto-merged, simply leave a comment. If you want to post a comment without blocking auto-merging, you must include the text |
UUID: ba9fb4c0-828e-4473-b6a1-cd2560fee5bf Repo: https://github.com/TuringLang/JuliaBUGS.jl.git Tree: e43798c8a67d0b386ed4a101e4a6c5f3c47b4374 Registrator tree SHA: 17aec322677d9b81cdd6b9b9236b09a3f1374c6a
32606bb
to
57460d3
Compare
The original names `program!`, `for_loops!`, and `assignment!` are confusing, so renamed them for better clarity. Also some docstrings are removed: the code should be clear enough. No actual changes. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>