mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 17:59:30 +00:00
v0.6.0
* 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:
parent
724249555f
commit
70d3aba121
8 changed files with 369 additions and 95 deletions
10
bin/canc
10
bin/canc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue