Changes between Version 24 and Version 25 of Ticket #4138
- Timestamp:
- 2017-02-27T15:57:59Z (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4138 – Description
v24 v25 3 3 The current status is: 4 4 5 Instantiation (Per, Adrian) 60%::6 Instantiation of long and short class definitions are implemented. Still missing are class extends, overloaded functions and partial derivative functions. The handling of equations, algorithms and expressions also needs to be expanded, so far it's mostly just a proof of concept.5 Instantiation (Per, Adrian) 80%:: 6 Instantiation of long and short class definitions are implemented. Still missing are overloaded functions and partial derivative functions. Partial support for class extends. The handling of equations, algorithms and expressions needs to be expanded. 7 7 8 Extends (Per) 80%::8 Extends (Per) 90%:: 9 9 Support for extends is implemented. More error checking is needed though, e.g. for duplicate elements and illegal class types. 10 10 11 Lookup (Per) 80%::11 Lookup (Per) 90%:: 12 12 Basic lookup is implemented, both for class names and crefs. Very little error checking is done beyond "name could not be found" though. Some more lookup functions will likely be needed for e.g. inner/outer. 13 13 14 Modifiers (Per) 60%::14 Modifiers (Per) 80%:: 15 15 Support of modifiers on components, extends clauses and class modifiers is implemented, more testing is needed. 16 16 17 Redeclare (Per) 50%::18 Only very basic redeclare of components is implemented, more work is needed for redeclare of classes, merging of modifiers, constraining type, etc. 17 Redeclare (Per) 60%:: 18 Only very basic redeclare of components is implemented, more work is needed for redeclare of classes, merging of modifiers, constraining type, etc. Preliminary support for redeclare-as-elements was implemented. 19 19 20 20 Imports (Per) 25%:: 21 21 Basic support for qualified imports is implemented, unqualified imports still remains. It's also only possible to import classes at the moment, and not components. Some way of marking elements as imported is also needed, currently they are just inserted into the importing class as they are. 22 22 23 Conditional Components ( Per) ::23 Conditional Components (Lennart) :: 24 24 No support for conditional components implemented. 25 This needs support from constant/function evaluation and expression simplification. It can be implemented after typing together with handling of component bindings. 25 26 26 27 Inner/Outer (Adrian) :: 27 28 No support for Inner/Outer is implemented at all so far, but the new instance tree structure should make this fairly straightforward. 29 The inner outer can be implemented via addition of alias equations, is a matter of lookup of the inner component and prefixing. 28 30 29 Functions ( Adrian, Peter) 15%::30 Partial support for functions. Instantiation and typing of functions is implemented. Positional arguments and named arguments are supported. Vectorization of functions needs to be implemented. Prefixing is not yet handled correctly. Support for reductions needs to be implemented. Someway of storing functions during the instantiation is needed so that they end up in the DAE (we can probably use the component tree directly for this).31 Functions (Per, Adrian, Peter, Mahder) 40%:: 32 Partial support for functions. Instantiation and typing of functions is implemented. Positional arguments and named arguments are supported. Vectorization support has been be implemented. Support for reductions needs to be implemented. Per is working now on a way of storing functions during the instantiation is needed so that they end up in the DAE (we can probably use the component tree directly for this). 31 33 32 Records ( Lennart & Mahder) 5%::33 No support for records so far, except that the instantiation will instantiate the records as normal classes. Support for record constructors needs to be implemented, and other record things.34 Records (Mahder) 50%:: 35 Support for records and for record constructors in the works. 34 36 35 Builtin (Per ) 5%::37 Builtin (Per, Peter) 30%:: 36 38 So far only support for the basic types and time is implemented. Support for all the builtin functions and other builtin things (e.g. StateSelect, ExternalObject, etc.) needs to be implemented. As much as possible should be implemented via ModelicaBuiltin. 37 39 38 Typing (Mahder, Peter) 60%::40 Typing (Mahder, Peter) 70%:: 39 41 Quite a lot of typing is already implemented, but it needs to be expanded to handle all kinds of expressions and so on. 40 42 41 Type Checking (Mahder, Peter , Arun) 10%::43 Type Checking (Mahder, Peter) 60%:: 42 44 Some parts of the type checking module from the "old new frontend" is being used to type check binary expressions at the moment. Everything in NFTypeCheck that's not used is commented out since some of it doesn't compile any more. We need to investigate if more of the old code can be reused, and implement missing/nonreusable parts. 43 45 44 Flattening (Per) 25%::46 Flattening (Per) 40%:: 45 47 Expansion of array bindings is currently broken and need to be fixed. Subscripting needs to be improved, and the module in general needs to be expanded to keep up with the phases before it. 46 48 47 Connection Handling (Adrian) 40%::49 Connection Handling (Adrian) 50%:: 48 50 Handling of connect equations using the DAE and the instance tree. 49 51 … … 51 53 Ported the backend unit checking to the new frontend. Added tests. Based on the DAE intermediate form. 52 54 53 Operator Overloading ( Lennart &Mahder & Martin) 1%::55 Operator Overloading (Mahder & Martin) 1%:: 54 56 The support for operator overloading from the current front-end (or the previous implementation of the new front-end) should be ported to the new front-end. 55 57 56 Constant Evaluation ( Per) 1%::57 Constant evaluate structural parameters (minimal) or any other constant/parameter bindings (not by default). Per i s working on a new type of DAE component reference that will contain a link to the instantiated component tree on which one can do evaluation of bindings.58 Constant Evaluation (Lennart) 30%:: 59 Constant evaluate structural parameters (minimal) or any other constant/parameter bindings (not by default). Per implemented a new type of DAE component reference that contains links to the instantiated component tree on which one can do evaluation of bindings. Partial support for evaluating component references has been implemented, needs extending to support all types of expressions. We should ONLY evaluate what we need and nothing more. 58 60 59 61 Function Evaluation (Lennart) 1%:: 60 62 Sometimes to evaluate structural parameters one needs to evaluate functions. This will port the function interpretation from the current front-end to the new front-end. 63 64 Expression Simplification (Lennart) %:: 65 Expression simplification is needed together with constant/function evaluation to evaluate structural parameters. This needs to be a separate package so that can be reused in some other parts of the compiler. The current implementation is rather slow, should be improved up if possible. 61 66 62 67 Local balance checking (Mahder) :: … … 65 70 Synchronous Features (BernhardT) :: 66 71 The handling of the synchronous features (Clocks, etc) and state machines should be ported from the current front-end to the new front-end. 72 This functionality needs function, builtin and inner/outer support.