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
32
06/lpeglabel/rockspecs/lpeglabel-1.2.0-1.rockspec
Normal file
32
06/lpeglabel/rockspecs/lpeglabel-1.2.0-1.rockspec
Normal file
|
@ -0,0 +1,32 @@
|
|||
package = "LPegLabel"
|
||||
version = "1.2.0-1"
|
||||
source = {
|
||||
url = "https://github.com/sqmedeiros/lpeglabel/archive/v1.2.0-1.tar.gz",
|
||||
tag = "v1.2.0-1",
|
||||
dir = "lpeglabel-1.2.0-1",
|
||||
}
|
||||
description = {
|
||||
summary = "Parsing Expression Grammars For Lua with Labeled Failures",
|
||||
detailed = [[
|
||||
LPegLabel is a conservative extension of the LPeg library that provides
|
||||
an implementation of Parsing Expression Grammars (PEGs) with labeled failures.
|
||||
Labels can be used to signal different kinds of erros and to specify which recovery
|
||||
pattern should handle a given label.
|
||||
LPegLabel also reports the farthest failure position in case of an ordinary failure.
|
||||
]],
|
||||
homepage = "https://github.com/sqmedeiros/lpeglabel/",
|
||||
maintainer = "Sergio Medeiros <sqmedeiros@gmail.com>",
|
||||
license = "MIT/X11"
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1",
|
||||
}
|
||||
build = {
|
||||
type = "builtin",
|
||||
modules = {
|
||||
lpeglabel = {
|
||||
"lpcap.c", "lpcode.c", "lpprint.c", "lptree.c", "lpvm.c"
|
||||
},
|
||||
relabel = "relabel.lua"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue