diff options
Diffstat (limited to 'printtokens.lua')
-rw-r--r-- | printtokens.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/printtokens.lua b/printtokens.lua index 62e8fd9..2cc6125 100644 --- a/printtokens.lua +++ b/printtokens.lua @@ -1,5 +1,5 @@ --[[ - This file is part of luatokens.lua - pure-Lua Lua tokenizer + This file is part of Cratera Compiler Copyright (C) 2019 Soni L. This program is free software: you can redistribute it and/or modify @@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. --]] -local parser = require "parser" +local parser = require "cratera.parser" -- CLI argument rules local defs = parser.selfify({}) @@ -50,7 +50,7 @@ end defs['--'] = parser.selfify({[parser.FALLBACK] = defs[parser.FALLBACK], [parser.EOZ] = defs[parser.EOZ]}) local state = parser.parse(defs, arg) -local luatokens = require "luatokens" +local luatokens = require "cratera.luatokens" local file = state.file local tokens = luatokens.defs local state, err, etoken, estate = parser.parse(tokens, function() return file:read(8192) end) |