sus-regex/charjmpt.lua

17 lines
363 B
Lua
Raw Permalink Normal View History

2024-04-05 10:21:27 +03:00
#!/usr/bin/env lua
print("charjmpt:")
chars = {
['\0'] = "parse_exit",
2024-04-08 03:25:15 +03:00
['('] = "parse_grbegin",
[')'] = "parse_grend",
['\\'] = "parse_escape",
['|'] = "parse_nextalt",
['['] = "parse_murder",
['*'] = "parse_erase",
2024-04-05 10:21:27 +03:00
}
local def = "parse_self"
for n=0,255 do
local c = string.char(n)
2024-04-08 03:25:15 +03:00
print("\t.2byte "..(chars[c] or "parse_self").." - charjmpt_prej")
2024-04-05 10:21:27 +03:00
end