implement proper error handling

This commit is contained in:
tema5002
2026-05-24 12:46:01 +03:00
parent 19e8e1356b
commit a3c2ddbf9e
9 changed files with 345 additions and 61 deletions

View File

@@ -15,7 +15,10 @@ end
local function runCommand(cmd)
print("> " .. cmd)
return os.execute(cmd)
local result = os.execute(cmd)
if result ~= true then
os.exit(1)
end
end
local function fixPath(path)
@@ -58,6 +61,7 @@ if not needsDir then
end
local files = {
'src/error.c',
'src/helper.c',
'src/lexer.c',
'src/parser.c',