-
Notifications
You must be signed in to change notification settings - Fork 17
Native Vensim MDL parser #211
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
f2d5a1f
simlin-compat: start on mdl conversion module
bpowers 976651d
compat: implement MDL TokenNormalizer
bpowers 92e98eb
compat: add MDL AST types for parser
bpowers 1a5cbaa
compat: normalize all WITH LOOKUP variants to Token::WithLookup
bpowers 7966fca
compat: address MDL AST review feedback
bpowers 3671e38
compat: implement LALRPOP parser for MDL equations
bpowers 6e8288d
compat: implement MDL to datamodel conversion
bpowers 50d22b1
compat: refactor convert.rs into submodules
bpowers 1e8aff3
compat: add comprehensive MDL equivalence tests
bpowers 991167e
compat: support ACTIVE INITIAL in native MDL parser
bpowers 9297168
compat: parse Vensim SUPPLEMENTARY flag as structured field
bpowers c451a6a
xmutil: parse Vensim SUPPLEMENTARY flag as structured field
bpowers e89d3b8
xmutil: use as_sectors mode for single-model output
bpowers b67c6e3
compat: parse MDL settings section for unit equivalences and integrat…
bpowers 460f96d
compat: add RK2 integration method and improve MDL settings parsing
bpowers 11c3357
compat: simplify MDL equivalence test normalization
bpowers 7191845
compat: add principled unit simplification to native MDL parser
bpowers bcb3487
compat: handle range-only units as dimensionless in native MDL parser
bpowers 08a75f8
compat: add MIT license and README for xmutil-derived MDL parser
bpowers 89be777
compat: rename feature from "vensim" to "xmutil"
bpowers a85f7d6
compat: implement semantic model groups (sectors)
bpowers af4be45
compat: update MDL parser plan to reflect current implementation state
bpowers 9b35c8b
compat: implement view/sketch parsing for native MDL parser
bpowers d2e165b
compat: fix view ghost/alias detection and filter Time variable
bpowers 716e66e
compat: achieve view conversion parity with xmutil
bpowers ca7c254
compat: fix view conversion parity with xmutil round 3
bpowers 91a5f02
compat: prefer TIME STEP units for time_units (xmutil parity)
bpowers c99441a
compat: accept escaped underscores in MDL symbols
bpowers 6a6a915
compat: enable full view element comparison in MDL equivalence tests
bpowers e99de86
compat: expose native MDL import in non-xmutil builds
bpowers a8bc71f
app: use native MDL import, remove xmutil-js dependency
bpowers c1373af
compat: use default view_box for native MDL import
bpowers 22b4164
engine2: remove hasVensimSupport and xmutil feature references
bpowers c9e329a
core: preserve link polarity and useLetteredPolarity in TS models
bpowers 86af79d
engine: update ModelGroup members on variable rename
bpowers 91b869e
engine: remove deleted variables from group members
bpowers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path now unconditionally calls
Engine2Project.openVensimfor.mdlfiles. The engine2 API still exposesProject.hasVensimSupport()and its tests explicitly handle the case whereopenVensimmust throw when the WASM build lackssimlin_project_open_vensim. In that scenario, users will now hit a runtime exception and lose MDL import entirely (there’s no fallback anymore), whereas the previous code avoided that by checking support and falling back. Consider restoring the support check (or another fallback) so MDL import doesn’t regress on builds that omit Vensim support.Useful? React with 👍 / 👎.