\starttext \ctxlua {table.save(tex.jobname .. '.lua',tex.primitives())} \stoptext