Opened 6 years ago
Closed 5 years ago
#5511 closed defect (fixed)
Investigate MetaModelica to Julia translator
Reported by: | Martin Sjölund | Owned by: | John Tinnerholm |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | MetaModelica | Version: | |
Keywords: | Cc: | John Tinnerholm |
Description
Things that we need:
- A simple (or advanced) source-to-source MetaModelica-to-Julia translator. A prototype exists for SCode structure but should perhaps be rewritten using Absyn in order to keep comments.
- A Modelica parser that outputs Julia internal structures. Could perhaps be done using the existing ANTLR C target (that outputs MetaModelica structures) by using a macro to use the same code but one is external "C" in MetaModelica and the other linked in and used by Julia. Use an Absyn.mo to Absyn.jl file and test this parser. An alternative is to write a parser generator (Julia has lexer generators).
- Translate other files, including packages with external C code. Perhaps similar to the above.
Change History (3)
comment:1 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
A simple (or advanced) source-to-source MetaModelica-to-Julia translator. A prototype exists for SCode structure but should perhaps be rewritten using Absyn in order to keep comments.
Done
A Modelica parser that outputs Julia internal structures. Could perhaps be done using the existing ANTLR C target (that outputs MetaModelica structures) by using a macro to use the same code but one is external "C" in MetaModelica and the other linked in and used by Julia. Use an Absyn.mo to Absyn.jl file and test this parser. An alternative is to write a parser generator (Julia has lexer generators).
There is one in operation. Credit goes to Martin and Adrian :D
Translate other files, including packages with external C code. Perhaps similar to the above.
All done but some C parts are left, the things concerning MetaModelica can be considered somewhat operating
Since we are now done with the basis, maybe we should create more stories to continue work on this