Generate native LSL parser tables (#83)
Some checks failed
Native code generation / deterministic (push) Failing after 2m36s
Imaging and meshing gate / native (push) Successful in 5m29s
JPEG 2000 feature / linux (push) Successful in 2m46s
Native Rust workspace compile / compile (push) Failing after 1m58s
Skia feature / linux (push) Successful in 31m14s

This commit is contained in:
2026-08-11 03:36:14 +00:00
parent 656d837778
commit 2558e2f49f
17 changed files with 3905 additions and 2700 deletions

View File

@@ -0,0 +1,66 @@
{
"schema": 1,
"source": {
"repository": "https://github.com/cinderblocks/libremetaverse",
"commit": "2aa70bb68513b39795da5d13c88f31b86e85a3ba",
"parser": "LibreMetaverse.LslTools/YYClass/yycs0syntax.cs",
"lexer": "LibreMetaverse.LslTools/YYClass/yycs0tokens.cs",
"license": "BSD-3-Clause",
"serialization_version": "4.5"
},
"start": 19,
"eof": 2,
"tokens": [
["EOF", 2, null],
["BASE", 3, "base"],
["THIS", 4, "this"],
["NEW", 5, "new"],
["ID", 6, null],
["ANY", 7, null],
["COLON", 8, ":"],
["SEMICOLON", 9, ";"],
["LBRACE", 10, "{"],
["RBRACE", 11, "}"],
["LPAREN", 12, "("],
["RPAREN", 13, ")"],
["LBRACK", 14, "["],
["RBRACK", 15, "]"]
],
"nonterminals": [
["GStuff", 16],
["Stuff", 17],
["Item", 18],
["ClassBody", 19],
["Cons", 20],
["Call", 21],
["BaseCall", 22],
["Name", 23]
],
"productions": [
[1, "ClassBody", ["GStuff", "Cons", "GStuff"], "ClassBody_2_1"],
[2, "GStuff", [], "GStuff_2_1"],
[3, "GStuff", ["GStuff", "Item"], "GStuff_4_1"],
[4, "GStuff", ["GStuff", "Call"], "GStuff_6_1"],
[5, "Stuff", [], "Stuff_2_1"],
[6, "Stuff", ["Stuff", "Item"], "Stuff_4_1"],
[7, "Cons", ["Name", "LPAREN", "Stuff", "RPAREN", "BaseCall"], "Cons_2_1"],
[8, "Call", ["Name", "LPAREN", "Stuff", "RPAREN"], "Call_2_1"],
[9, "BaseCall", [], "BaseCall_2_1"],
[10, "BaseCall", ["COLON", "BASE", "LPAREN", "Stuff", "RPAREN"], "BaseCall_4_1"],
[11, "BaseCall", ["COLON", "THIS", "LPAREN", "Stuff", "RPAREN"], "BaseCall_6_1"],
[12, "Name", ["ID"], "Name_2_1"],
[13, "Name", ["ID", "LBRACK", "Stuff", "RBRACK"], "Name_4_1"],
[14, "Item", ["ID"], "Item_2_1"],
[15, "Item", ["ANY"], "Item_4_1"],
[16, "Item", ["SEMICOLON"], "Item_6_1"],
[17, "Item", ["BASE"], "Item_8_1"],
[18, "Item", ["THIS"], "Item_10_1"],
[19, "Item", ["THIS", "LBRACK", "Stuff", "RBRACK"], "Item_12_1"],
[20, "Item", ["COLON"], "Item_14_1"],
[21, "Item", ["NEW", "Name"], "Item_16_1"],
[22, "Item", ["NEW", "ID"], "Item_18_1"],
[23, "Item", ["LPAREN", "Stuff", "RPAREN"], "Item_20_1"],
[24, "Item", ["LBRACE", "GStuff", "RBRACE"], "Item_22_1"],
[25, "Item", ["LBRACK", "Stuff", "RBRACK"], "Item_24_1"]
]
}