Skip to content
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

Settle the top level structure #2469

Merged
merged 4 commits into from
Jan 9, 2020
Merged

Conversation

henrikt-ma
Copy link
Collaborator

Opening PR for roadmap item 'Settle the top level structure'.

Note that operator overloading is being removed in the current state. If we want to keep them, we should add production rules specifically for these, so that we avoid reintroducing recursiveness of class-definition.

Before being ready for merge, we should first merge #2465 (and resolve the resulting conflicts).

@henrikt-ma
Copy link
Collaborator Author

Note that this PR is where we are supposed to decide whether to introduce a new keyword such as flat_model. With the current proposed structure, where this keyword wouldn't appear near the beginning of the file anyway, there seems to be little reason for introducing a new keyword, which is why model is the one being proposed.

@olivleno
Copy link
Collaborator

olivleno commented Jan 9, 2020

Web Meeting: Overloaded operator can bee added to future version if it turns out that they are needed. For now they shall be removed.

@olivleno
Copy link
Collaborator

olivleno commented Jan 9, 2020

Web Meeting:

  • Agreed to have version header according to Modelica MCP.
  • All class declarations above the model.
  • Keyword for a flat model shall be: model
  • Agreed to not having a top level container

Shall be rebased on top of the merged grammar [Henrik].

Besides being a significant simplification of Flat Modelica semantics, this also removes an important use of nested class definitions in Modelica, since an overloaded operator needs to be defined inside the operator record to which it belongs.
This allows for more clear marking of the removed parts of the grammar.
@henrikt-ma
Copy link
Collaborator Author

Rebased. Marking as Ready for review.

@henrikt-ma henrikt-ma marked this pull request as ready for review January 9, 2020 14:47
@henrikt-ma henrikt-ma merged commit 094f5f8 into MCP/0031 Jan 9, 2020
@henrikt-ma henrikt-ma deleted the MCP/0031+top-level-structure branch January 10, 2020 06:33
@HansOlsson HansOlsson added the MCP0031 Base Modelica and MLS modularization (MCP-0031) label Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MCP0031 Base Modelica and MLS modularization (MCP-0031)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants