AlgebraicJulia / StockFlow.jl

https://algebraicjulia.github.io/StockFlow.jl/
MIT License
65 stars 6 forks source link

Created 'stock_and_flow_simpler' function in Syntax.jl to assist in d… #43

Closed neonWhiteout closed 1 year ago

neonWhiteout commented 1 year ago

…ynamically creating stock flows

Hard to dynamically generate StockFlows based off DSL, since macro replace occurs before everything else, and the current StockFlowF syntax is a bit complicated, so created a function which translates a simpler input into arguments for StockAndFlowBlock and creates a StockAndFlowF.

Saityi commented 1 year ago

For posterity, can you provide an example of what is hard to dynamically generate and how this fixes it, perhaps in the PR main body?