From 5d7198ff1c5b9d1a970285be29f9277b0838a50f Mon Sep 17 00:00:00 2001 From: Dimitris Kiziridis Date: Tue, 28 Apr 2020 16:44:13 +0300 Subject: [PATCH] add .rockspec file and executable template script --- sci-lang-1.0.0.beta10-1.rockspec | 40 ++++++++++++++++++++++++++++++++ scilua | 4 ++++ 2 files changed, 44 insertions(+) create mode 100644 sci-lang-1.0.0.beta10-1.rockspec create mode 100755 scilua diff --git a/sci-lang-1.0.0.beta10-1.rockspec b/sci-lang-1.0.0.beta10-1.rockspec new file mode 100644 index 0000000..84821a1 --- /dev/null +++ b/sci-lang-1.0.0.beta10-1.rockspec @@ -0,0 +1,40 @@ +package = "sci-lang" +version = "1.0.0.beta10-1" + +source = { + url = "https://github.com/stepelu/lua-sci-lang/archive/v1.0.0-beta10.tar.gz", + dir = "lua-sci-lang-1.0.0-beta10" +} +description = { + summary = "Syntax extensions to LuaJIT for scientific computing", + detailed = "Based on the LuaJIT Language Toolkit this executable introduces extensions to the LuaJIT syntax for algebra operations.", + homepage = "http://scilua.org/", + license = "MIT" +} +dependencies = { + "lua >= 5.1, < 5.4", + "luajit >= 2.0", + "sci >= 1.0" +} +build = { + type = "builtin", + modules = { + ["sci-lang.__bin.scilua"] = "__bin/scilua.lua", + ["sci-lang.ast-boolean-const-eval"] = "ast-boolean-const-eval.lua", + ["sci-lang.ast-const-eval"] = "ast-const-eval.lua", + ["sci-lang.ast-validate"] = "ast-validate.lua", + ["sci-lang.bcread"] = "bcread.lua", + ["sci-lang.bcsave"] = "bcsave.lua", + ["sci-lang.bytecode"] = "bytecode.lua", + ["sci-lang.compile"] = "compile.lua", + ["sci-lang.generator"] = "generator.lua", + ["sci-lang.lexer"] = "lexer.lua", + ["sci-lang.lua-ast"] = "lua-ast.lua", + ["sci-lang.luacode-generator"] = "luacode-generator.lua", + ["sci-lang.operator"] = "operator.lua", + ["sci-lang.parser"] = "parser.lua", + ["sci-lang.reader"] = "reader.lua", + ["sci-lang.transform"] = "transform.lua", + ["sci-lang.util"] = "util.lua" + } +} diff --git a/scilua b/scilua new file mode 100755 index 0000000..2cdcd15 --- /dev/null +++ b/scilua @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +#Uncomment below and edit path to scilua.lua +#luajit /path/to/__bin/scilua.lua \ No newline at end of file