1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 09:59:29 +00:00
* Fixed HORRIBLE parsing bugs with short functions and right assignemnt
operators
* Allowed to omit then, do and end for some statements
* Fixed hexa numbers parsing
* Run the Lua 5.3 test suite through Candran, everything that should
work worked! Yay!

Lacks tests and README
This commit is contained in:
Étienne Fildadut 2017-08-31 19:17:34 +02:00
parent 724249555f
commit 70d3aba121
8 changed files with 369 additions and 95 deletions

View file

@ -27,13 +27,11 @@ for _, file in ipairs(args) do
local input = inputFile:read("*a")
inputFile:close()
if args.ast then
pp.dump(assert(parse(input)))
return
end
args.chunkname = file
if args.chunkname == nil then
args.chunkname = file
if args.ast then
pp.dump(assert(parse(input, args.chunkname)))
return
end
local out = input