diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2019-07-31 22:57:53 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2019-07-31 23:15:26 -0300 |
commit | 4a818684e2bc23c1ba09dec6cb74127e8e0e3f95 (patch) | |
tree | 8f0de39c15ddbb149ee707dc998575e45ac9d88d /printtokens.lua | |
parent | 360ac079778691ba991308ac73f3e1f70ad579e5 (diff) |
Cleaning up
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) |