Skip to content

[General] Prefix #87

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

Open
ocots opened this issue Mar 21, 2025 · 0 comments
Open

[General] Prefix #87

ocots opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ocots
Copy link
Member

ocots commented Mar 21, 2025

Add a prefix for Poisson as CTParser here:

function fun(x)
@match (@capture(x, [a_, b_]), @capture(x, {c_, d_})) begin
#(true, false) => :( Lie($a, $b; autonomous=$autonomous, variable=$variable))
(false, true) => quote
if ($c isa Function && $d isa Function)
Poisson($c, $d; autonomous=$autonomous, variable=$variable)
else
Poisson($c, $d)
end
end
(false, false) => x
_ => error("internal error")
end
end

@ocots ocots self-assigned this Mar 21, 2025
@ocots ocots added the enhancement New feature or request label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant