-
Notifications
You must be signed in to change notification settings - Fork 6
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
Created Composition DSL. #85
Created Composition DSL. #85
Conversation
This doesn't have any overlap with the stratification DSL. Shouldn't be any issue with accepting both of them. |
689ca38
to
6550b3e
Compare
(s1, s2) s1, s2 ^ A => N end) Where sf1 and sf2 are stockflows, the first line is an ordered tuple of symbols which will act as its corresponding stockflow, and stockflows are separated from feet with ^. This commit includes Composition.jl, a testing file, and slight changes to Syntax.jl in src and tests; in src, I include Composition.jl, and in tests, I run the Composition tests from Syntax.
7632f69
to
94c01f8
Compare
Force pushing was me removing some code which only works with stratification. |
Rewriting DSL will likely need to wait until Stratification is merged; it relies on a few functions which are on the Stratification branch. Also I still need to write tests for it. |
removed testing code from top
…end instead of quote end.
Some minor updates. Used to need quote blocks, now you can use begin end |
I'm hoping you won't get a merge conflict after every merge. They should be easy to deal with, though. |
sfcompose(sf1, sf2, quote
(s1, s2)
s1, s2 ^ A => N
end)
Where sf1 and sf2 are stockflows, the first line is an ordered tuple of symbols which will act as its corresponding stockflow, and stockflows are separated from feet with ^. This commit includes Composition.jl, a testing file, and slight changes to Syntax.jl in src and tests; in src, I include Composition.jl, and in tests, I run the Composition tests from Syntax.