-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat package.mo/moc the same in script vs commandline. (#10748)
* Treat package.mo/moc the same in script vs commandline. - ```sh >$ omc FooBar/package.mo ``` on the commandline should now behave the same as ```mo loadFile("FooBar/package.mo"); ``` in a mos script. That is, omc will load `FooBar` as a library. These are now more or less equivalent to ```mo loadLibrary(Foobar); ``` if we assume `FooBar` was on `MODELICAPATH`. * Check for duplicate top level classes. - This will check for duplicate top level classes within a single source file. That means, it will not try to catch duplicates from different files. And it will not check for duplicates inside other classes. * Do not print errors/messages before the flattened model. - Do not print messages from the parsing/loading stage yet. They will be shown together with messages from translation, after the flat model has been dumped. - This is a matchcontinue and if something fails, the last case will catch it and show the errors anyway. * Expected output. - All messages are now printed after the flattened model is printed.
- Loading branch information
Showing
5 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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