Skip to content

Instantly share code, notes, and snippets.

@stuartpb
Created November 6, 2011 18:24
Show Gist options
  • Save stuartpb/1343278 to your computer and use it in GitHub Desktop.
Save stuartpb/1343278 to your computer and use it in GitHub Desktop.
A hacky bit of code I wrote up in a couple seconds to make the table constructors for some glyphs
for _,s in ipairs{"AZ","09","!!","??","::","..","--"} do
local b1=string.byte(s:sub(1,1))
local b2=string.byte(s:sub(2,2))
for i=b1, b2 do
print(string.format([[
[%q]={
{},
},]],string.char(i)))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment