Big Commit
I accidentally made this commit really big after some git mishaps. Working on zig grammar, finally kinda works. Fixed some diagnostics warnings Moved examples to tofix because fixing them is besides the point right now.
This commit is contained in:
parent
858fe11666
commit
fe22cc7665
13 changed files with 367 additions and 259 deletions
|
@ -1,4 +1,5 @@
|
|||
local re = require("deps.lpeglabel.relabel")
|
||||
local util = require("src.util")
|
||||
|
||||
local peg = {}
|
||||
|
||||
|
@ -256,6 +257,7 @@ function peg.pegToAST(input, defs)
|
|||
table.insert(err, string.rep(" ", col-1) .. "^")
|
||||
error("syntax error(s) in pattern\n" .. table.concat(err, "\n"), 3)
|
||||
end
|
||||
|
||||
return r
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue