Metalua is now composed of 3 rocks.
* metalua-parser
* metalua-compiler: parser + all features
* metalua: metalua-compiler + command line
diff --git a/metalua-0.7.3-1.rockspec b/metalua-0.7.3-1.rockspec
new file mode 100644
index 0000000..f45f225
--- /dev/null
+++ b/metalua-0.7.3-1.rockspec
@@ -0,0 +1,28 @@
+--*-lua-*--
+package = "metalua-parser"
+version = "0.7.3-1"
+source = {
+ url = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git/snapshot/v0.7.3.tar.gz"
+}
+description = {
+ summary = "Metalua: parser, compiler and command line interface.",
+ detailed = "Just enabling metalua-compiler powers to command line.",
+ homepage = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git",
+ license = "EPL + MIT"
+}
+dependencies = {
+ "alt-getopt >= 0.7",
+ "checks >= 1.0",
+ "metalua-compiler == 0.7.3",
+ platforms = {
+ unix = {
+ "readline >= 1.3", -- Better REPL experience
+ }
+ }
+}
+build = {
+ type="builtin",
+ bin = {
+ metalua = 'bin/metalua'
+ }
+}
diff --git a/metalua-compiler-0.7.2-2.rockspec b/metalua-compiler-0.7.2-2.rockspec
deleted file mode 100644
index cc77462..0000000
--- a/metalua-compiler-0.7.2-2.rockspec
+++ /dev/null
@@ -1,65 +0,0 @@
---*-lua-*--
-package = "metalua-compiler"
-version = "0.7.2-2"
-source = {
- url = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git/snapshot/v0.7.2.tar.gz"
-}
-
-description = {
- summary = "Metalua's compiler: converting (Meta)lua source strings and files into executable Lua 5.1 bytecode",
- detailed = [[
- This is the Metalua copmiler, packaged as a rock, depending
- on the spearate metalua-parser AST generating library. It
- compiles a superset of Lua 5.1 into bytecode, which can
- then be loaded and executed by a Lua 5.1 VM. It also allows
- to dump ASTs back into Lua source files.
- ]],
- homepage = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git",
- license = "EPL + MIT"
-}
-dependencies = {
- "lua ~> 5.1", -- Lua 5.2 bytecode not supported
- "luafilesystem >= 1.6.2", -- Cached compilation based on file timestamps
- "metalua-parser == 0.7.2", -- AST production
- platforms = {
- unix = {
- "readline >= 1.3", -- Better REPL experience
- }
- }
-}
-
-build = {
- type="builtin",
- modules={
- ["metalua.compiler.bytecode"] = "metalua/compiler/bytecode.lua",
- ["metalua.compiler.globals"] = "metalua/compiler/globals.lua",
- ["metalua.compiler.bytecode.compile"] = "metalua/compiler/bytecode/compile.lua",
- ["metalua.compiler.bytecode.lcode"] = "metalua/compiler/bytecode/lcode.lua",
- ["metalua.compiler.bytecode.lopcodes"] = "metalua/compiler/bytecode/lopcodes.lua",
- ["metalua.compiler.bytecode.ldump"] = "metalua/compiler/bytecode/ldump.lua",
- ["metalua.loader"] = "metalua/loader.lua",
- },
- install={
- lua={
- ["metalua.treequery"] = "metalua/treequery.mlua",
- ["metalua.compiler.ast_to_src"] = "metalua/compiler/ast_to_src.mlua",
- ["metalua.treequery.walk"] = "metalua/treequery/walk.mlua",
- ["metalua.extension.match"] = "metalua/extension/match.mlua",
- ["metalua.extension.comprehension"] = "metalua/extension/comprehension.mlua",
- ["metalua.repl"] = "metalua/repl.mlua",
- },
- bin = {
- metalua = 'bin/metalua'
- }
- }
-}
-
---[==[-- Generate file lists
-for _, ext in ipairs{ 'lua', 'mlua' } do
- for filename in io.popen("find metalua -name '*."..ext.."'") :lines() do
- local modname = filename :gsub ('/', '.') :gsub ('%.'..ext..'$', '')
- print((' '):rep(8)..'["' .. modname .. '"] = "' .. filename .. '",')
- end
- print""
-end
---]==]--
diff --git a/metalua-compiler-0.7.3-1.rockspec b/metalua-compiler-0.7.3-1.rockspec
new file mode 100644
index 0000000..8a6faaf
--- /dev/null
+++ b/metalua-compiler-0.7.3-1.rockspec
@@ -0,0 +1,47 @@
+--*-lua-*--
+package = "metalua-compiler"
+version = "0.7.3-1"
+source = {
+ url = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git/snapshot/v0.7.3.tar.gz"
+}
+
+description = {
+ summary = "Metalua's compiler: converting (Meta)lua source strings and files into executable Lua 5.1 bytecode",
+ detailed = [[
+ This is the Metalua copmiler, packaged as a rock, depending
+ on the spearate metalua-parser AST generating library. It
+ compiles a superset of Lua 5.1 into bytecode, which can
+ then be loaded and executed by a Lua 5.1 VM. It also allows
+ to dump ASTs back into Lua source files.
+ ]],
+ homepage = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git",
+ license = "EPL + MIT"
+}
+dependencies = {
+ "lua ~> 5.1", -- Lua 5.2 bytecode not supported
+ "luafilesystem >= 1.6.2", -- Cached compilation based on file timestamps
+ "metalua-parser == 0.7.2", -- AST production
+}
+
+build = {
+ type="builtin",
+ modules={
+ ["metalua.compiler.bytecode"] = "metalua/compiler/bytecode.lua",
+ ["metalua.compiler.globals"] = "metalua/compiler/globals.lua",
+ ["metalua.compiler.bytecode.compile"] = "metalua/compiler/bytecode/compile.lua",
+ ["metalua.compiler.bytecode.lcode"] = "metalua/compiler/bytecode/lcode.lua",
+ ["metalua.compiler.bytecode.lopcodes"] = "metalua/compiler/bytecode/lopcodes.lua",
+ ["metalua.compiler.bytecode.ldump"] = "metalua/compiler/bytecode/ldump.lua",
+ ["metalua.loader"] = "metalua/loader.lua",
+ },
+ install={
+ lua={
+ ["metalua.treequery"] = "metalua/treequery.mlua",
+ ["metalua.compiler.ast_to_src"] = "metalua/compiler/ast_to_src.mlua",
+ ["metalua.treequery.walk"] = "metalua/treequery/walk.mlua",
+ ["metalua.extension.match"] = "metalua/extension/match.mlua",
+ ["metalua.extension.comprehension"] = "metalua/extension/comprehension.mlua",
+ ["metalua.repl"] = "metalua/repl.mlua",
+ }
+ }
+}
diff --git a/metalua-parser-0.7.2-3.rockspec b/metalua-parser-0.7.2-3.rockspec
deleted file mode 100644
index 2f19d40..0000000
--- a/metalua-parser-0.7.2-3.rockspec
+++ /dev/null
@@ -1,41 +0,0 @@
---*-lua-*--
-package = "metalua-parser"
-version = "0.7.2-3"
-source = {
- url = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git/snapshot/v0.7.2.tar.gz"
-}
-description = {
- summary = "Metalua's parser: converting Lua source strings and files into AST",
- detailed = [[
- This is a subset of the full Metalua compiler. It defines and generates an AST
- format for Lua programs, which offers a nice level of abstraction to reason about
- and manipulate Lua programs.
- ]],
- homepage = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git",
- license = "EPL + MIT"
-}
-dependencies = {
- "lua ~> 5.1",
- platforms = {
- unix = { "checks >= 1.0" }
- }
-}
-build = {
- type="builtin",
- modules={
- ["metalua.grammar.generator"] = "metalua/grammar/generator.lua",
- ["metalua.grammar.lexer"] = "metalua/grammar/lexer.lua",
- ["metalua.compiler.parser"] = "metalua/compiler/parser.lua",
- ["metalua.compiler.parser.table"] = "metalua/compiler/parser/table.lua",
- ["metalua.compiler.parser.ext"] = "metalua/compiler/parser/ext.lua",
- ["metalua.compiler.parser.annot.generator"] = "metalua/compiler/parser/annot/generator.lua",
- ["metalua.compiler.parser.annot.grammar"] = "metalua/compiler/parser/annot/grammar.lua",
- ["metalua.compiler.parser.stat"] = "metalua/compiler/parser/stat.lua",
- ["metalua.compiler.parser.misc"] = "metalua/compiler/parser/misc.lua",
- ["metalua.compiler.parser.lexer"] = "metalua/compiler/parser/lexer.lua",
- ["metalua.compiler.parser.meta"] = "metalua/compiler/parser/meta.lua",
- ["metalua.compiler.parser.expr"] = "metalua/compiler/parser/expr.lua",
- ["metalua.compiler"] = "metalua/compiler.lua",
- ["metalua.pprint"] = "metalua/pprint.lua",
- }
-}
diff --git a/metalua-parser-0.7.3-1.rockspec b/metalua-parser-0.7.3-1.rockspec
new file mode 100644
index 0000000..6e45bbf
--- /dev/null
+++ b/metalua-parser-0.7.3-1.rockspec
@@ -0,0 +1,38 @@
+--*-lua-*--
+package = "metalua-parser"
+version = "0.7.3-1"
+source = {
+ url = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git/snapshot/v0.7.3.tar.gz"
+}
+description = {
+ summary = "Metalua's parser: converting Lua source strings and files into AST",
+ detailed = [[
+ This is a subset of the full Metalua compiler. It defines and generates an AST
+ format for Lua programs, which offers a nice level of abstraction to reason about
+ and manipulate Lua programs.
+ ]],
+ homepage = "http://git.eclipse.org/c/koneki/org.eclipse.koneki.metalua.git",
+ license = "EPL + MIT"
+}
+dependencies = {
+ "lua ~> 5.1"
+}
+build = {
+ type="builtin",
+ modules={
+ ["metalua.grammar.generator"] = "metalua/grammar/generator.lua",
+ ["metalua.grammar.lexer"] = "metalua/grammar/lexer.lua",
+ ["metalua.compiler.parser"] = "metalua/compiler/parser.lua",
+ ["metalua.compiler.parser.table"] = "metalua/compiler/parser/table.lua",
+ ["metalua.compiler.parser.ext"] = "metalua/compiler/parser/ext.lua",
+ ["metalua.compiler.parser.annot.generator"] = "metalua/compiler/parser/annot/generator.lua",
+ ["metalua.compiler.parser.annot.grammar"] = "metalua/compiler/parser/annot/grammar.lua",
+ ["metalua.compiler.parser.stat"] = "metalua/compiler/parser/stat.lua",
+ ["metalua.compiler.parser.misc"] = "metalua/compiler/parser/misc.lua",
+ ["metalua.compiler.parser.lexer"] = "metalua/compiler/parser/lexer.lua",
+ ["metalua.compiler.parser.meta"] = "metalua/compiler/parser/meta.lua",
+ ["metalua.compiler.parser.expr"] = "metalua/compiler/parser/expr.lua",
+ ["metalua.compiler"] = "metalua/compiler.lua",
+ ["metalua.pprint"] = "metalua/pprint.lua",
+ }
+}