Skip to content

Small bugs when parsing code #1

@stuta

Description

@stuta

Hello. Great project!

http://tylerneylon.com/a/learn-lua/

u = {['@!#'] = 'qbert', [{}] = 1729, [6.28] = 'tau'}
print(u[6.28]) -- prints "tau"

I had to comment 2 parts to get this file to run:
u = {['@!#'] = 'qbert', [6.28] = 'tau'} -- , [{}] = 1729
-- print(u[6.28]) -- prints "tau"

Also os.clock() returns nil. I was able to get timing to wor with this js:
var timer = function () {
var d=new Date();
return d.getTime();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions