1
0
Fork
You've already forked ssc_lua
0
ssc Lua
C 66.4%
Lua 25.4%
Meson 8.2%
Find a file
Rafa Gago 97e5873bb1 convert line endings to Unix
It seems that somehow non-Unix endings were present.
2019年11月17日 17:30:17 +01:00
example/src/ssc_lua ssc + base_library: bump 2019年11月17日 17:27:31 +01:00
gitmodules build: move to meson 2017年04月16日 19:26:06 +02:00
include/ssc_lua base_library: ssc: bump 2019年11月03日 20:09:38 +01:00
script/lua let the lua to C script strip Lua comments 2016年10月16日 12:10:54 +02:00
src/ssc_lua ssc + base_library: bump 2019年11月17日 17:27:31 +01:00
subprojects ssc + base_library: bump 2019年11月17日 17:27:31 +01:00
test/src/ssc_lua convert line endings to Unix 2019年11月17日 17:30:17 +01:00
.gitignore build: move to meson 2017年04月16日 19:26:06 +02:00
.gitmodules build: move to meson 2017年04月16日 19:26:06 +02:00
LICENSE Update LICENSE 2016年10月13日 17:33:56 +02:00
meson.build meson.build: fix build on gcc 2019年11月03日 20:08:01 +01:00
meson_options.txt build: add option to install the compiled LuaJIT 2017年12月06日 17:05:10 +01:00
readme.md Update readme.md 2016年10月22日 18:57:52 +02:00

Simulator Scheduler Lua (ssc_lua)

LUA binding for the simulator scheduler (ssc).

Special credit

This project is part of an unrealeased and unfinished project at my former employer Diadrom AB which they kindly accepted to release as open source with a BSD license.

Description

A working implementation of ssc where the simulations are written in LUA. LuaJIT is used as Lua implementation.

There is a simple example program called "ssc_lua_example" " (it builds on the bin folder of the build/stage folder) which takes a Lua simulation script and allows to send data to the simulation from the command line.

A good simulation file to start playing might be "example.lua", which is an overview of the available features. It is located on the same path as the "ssc_lua_example" console program.

The program has the limitation that it can just send data to the fiber group 0 (referred as 1 from the Lua/simulation side).

Current status

Very basic testing done. Everything looks fine so far.

Build (Linux)

Be aware that cmocka used on base_library requires CMake.

git submodule update --init --recursive

cd dependencies

./prepare_dependencies.sh

cd ../build/premake

premake5 gmake

make -C ../linux config=release verbose=yes

Build (Windows)

Hopefully with Windows bash the steps above will work. the premake5 command should be run to generate Visual Studio solutions. (e.g.: premake5 vs2015).