Skip to content

hmpp91/SRCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRCompiler

Table of contents

General Info

Export Stella models to R scripts.

Building and prerequisites

If you want to build the project, you will need a C++ compiler, Bison, Flex and Make installed.

Simply run:

$ build.sh

Usage:

  1. First, export your Stella model to .txt format:
    Tool Bar -> Model -> Equation Viewer

  2. Run the following commands on terminal:

$ SRCompiler [path/to/stella_model.txt]

⚠️ NOTE: we recommend stick to the format of example files as close as possible to avoid compilation errors

Builtins and Operators Implemented:

🚧 -> Under development
🛑 -> Not developed
🎉 -> Already done!!

Builtin Section Process
Array 🛑
Cycle-time 🛑
Data 🚧
Delay 🛑
Discrete 🛑
Financial 🛑
Logical 🎉
Mathematical 🎉
Miscellaneous 🛑
Simulation 🚧
Statistical 🛑
Test Input 🛑
Trigonometric 🎉

The followings are exceptions inside of builtin sections:

  • Mathematical Builtins:
    • DERIVN -> 🛑
  • Miscellaneous Builtins:
    • COUNTER -> 🎉
    • TREND -> 🎉
  • Statistical Builtins:
    • NORMAL -> 🎉
    • POISON -> 🎉
    • LOGNORMAL -> 🎉
    • EXPRAND -> 🎉
    • RANDOM -> 🎉

Contact:

If you ever have any questions, feel free to make an issue here on GitHub.

License:

SRCompiler is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

Export Stella models to R scripts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •