Skip to content

[General] Prefix #87

@ocots

Description

@ocots

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions