Add stage 06: Lua bootstrap
The goal of stage 06 is to try parse zig synax in lua. I pulled in lpeglable 1.2.0 and parser-gen off github to get started. All of this needs to be cleaned up rather soon. Lua boostraps using tcc and musl from the previous stage. Since musl 0.6.0 doesn't support dynamic linking this build of lua doesn't support shared libraries. I couldn't easily patch musl with dlopen and friends so instead I link statically and call deps with c api.
This commit is contained in:
parent
2ae045cf8a
commit
e6b88d5a0f
170 changed files with 72518 additions and 2 deletions
27
06/parser-gen/rockspecs/parser-gen-1.0.rockspec
Normal file
27
06/parser-gen/rockspecs/parser-gen-1.0.rockspec
Normal file
|
@ -0,0 +1,27 @@
|
|||
package = "parser-gen"
|
||||
version = "1.0-7"
|
||||
source = {
|
||||
url = "git://github.com/vsbenas/parser-gen",
|
||||
tag = "v1.0"
|
||||
}
|
||||
description = {
|
||||
summary = "A PEG parser generator that handles space characters, generates ASTs and adds error labels automatically.",
|
||||
homepage = "https://github.com/vsbenas/parser-gen",
|
||||
license = "MIT/X11"
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1, < 5.4",
|
||||
"lpeglabel >= 0.12.2"
|
||||
}
|
||||
build = {
|
||||
type = "builtin",
|
||||
modules = {
|
||||
["parser-gen"] = "parser-gen.lua",
|
||||
["peg-parser"] = "peg-parser.lua",
|
||||
["stack"] = "stack.lua",
|
||||
["equals"] = "equals.lua",
|
||||
["errorgen"] = "errorgen.lua",
|
||||
|
||||
|
||||
}
|
||||
}
|
27
06/parser-gen/rockspecs/parser-gen-1.1.rockspec
Normal file
27
06/parser-gen/rockspecs/parser-gen-1.1.rockspec
Normal file
|
@ -0,0 +1,27 @@
|
|||
package = "parser-gen"
|
||||
version = "1.1-0"
|
||||
source = {
|
||||
url = "git://github.com/vsbenas/parser-gen",
|
||||
tag = "v1.1"
|
||||
}
|
||||
description = {
|
||||
summary = "A PEG parser generator that handles space characters, generates ASTs and adds error labels automatically.",
|
||||
homepage = "https://github.com/vsbenas/parser-gen",
|
||||
license = "MIT/X11"
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1, < 5.4",
|
||||
"lpeglabel >= 0.12.2"
|
||||
}
|
||||
build = {
|
||||
type = "builtin",
|
||||
modules = {
|
||||
["parser-gen"] = "parser-gen.lua",
|
||||
["peg-parser"] = "peg-parser.lua",
|
||||
["stack"] = "stack.lua",
|
||||
["equals"] = "equals.lua",
|
||||
["errorgen"] = "errorgen.lua",
|
||||
|
||||
|
||||
}
|
||||
}
|
27
06/parser-gen/rockspecs/parser-gen-1.2.rockspec
Normal file
27
06/parser-gen/rockspecs/parser-gen-1.2.rockspec
Normal file
|
@ -0,0 +1,27 @@
|
|||
package = "parser-gen"
|
||||
version = "1.2-0"
|
||||
source = {
|
||||
url = "git://github.com/vsbenas/parser-gen",
|
||||
tag = "v1.2"
|
||||
}
|
||||
description = {
|
||||
summary = "A PEG parser generator that handles space characters, generates ASTs and adds error labels automatically.",
|
||||
homepage = "https://github.com/vsbenas/parser-gen",
|
||||
license = "MIT/X11"
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1, < 5.4",
|
||||
"lpeglabel >= 0.12.2"
|
||||
}
|
||||
build = {
|
||||
type = "builtin",
|
||||
modules = {
|
||||
["parser-gen"] = "parser-gen.lua",
|
||||
["peg-parser"] = "peg-parser.lua",
|
||||
["stack"] = "stack.lua",
|
||||
["equals"] = "equals.lua",
|
||||
["errorgen"] = "errorgen.lua",
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue