Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/openmodelica/openmodelica-omcc

OpenModelica lexer (and parser) generator
https://github.com/openmodelica/openmodelica-omcc

Last synced: about 1 month ago
JSON representation

OpenModelica lexer (and parser) generator

Awesome Lists containing this project

README

        

// This file provides you how to compile and test the OMCCp
// There are two folders named omcc and omcc_test in the directory trunk/openmodelica/testsuite/
// the "omcc" folder contains the implemented code and the "omcc_test" folder contains the test cases
// look for the file SCRIPT.mos in the folder "omcc"
// to make the compilation process easier a Makefile is created.(look into the omcc folder)

1) Open the mingw terminal if you are a windows user and normal terminal for linux user

2) In the terminal window go to the path /OpenModelica/testsuite/openmodelica/omcc

3) at present the code is tested with testing environment rtest, and the baseline is added to makefile so set the basline by typing
"make baseline" in the terminal without quotes. baseline will be set. You have to set the baseline first everytime before you test your models

4) Then type the command "make test" or "make" in the terminal window, the omccp will be compiled and ready to run

5) some c files and other lib files will be created after running make, you can run again "make clean" to delete those generated files

6) The parser runs and produces the output for the testcases which can be seen in output.

7) if you want to test your own models or some other models look for the file "SCRIPT.mos" in the folder omcc

8) Open the file "SCRIPT.mos" and look for the comments // add your testfiles here

Note: you can look a clear picture of the output in the file SCRIPT.mos.
Note: to run the omcc without use of make file use the following ../../../build/bin/omc +g=MetaModelica +d=rml SCRIPT.mos