typedlua icon indicating copy to clipboard operation
typedlua copied to clipboard

Make lpeg an optional dependency

Open jacobdufault opened this issue 10 years ago • 2 comments

If require "lpeg" fails then LuLPeg is used instead.

jacobdufault avatar Dec 28 '14 02:12 jacobdufault

Have you tested with Lua 5.3?

andremm avatar Dec 30 '14 10:12 andremm

Looks like there are a few issues - load/loadstring is easily fixed, but when running tests I receive this error:

$ ../lua53.exe test.lua
> testing lexer...
expected: { `Local{ { `Id "h" }, { `Number "1900" } }, `Local{ { `Id "i" }, { `Number "4294967296" } } }

got: { `Local{ { `Id "h" }, { `Number "1900" } }, `Local{ { `Id "i" }, { `Number "0" } } }

C:\Users\jacob_000\Desktop\Lua\lua.exe: test.lua:181: assertion failed!
stack traceback:
        [C]: in function 'assert'
        test.lua:181: in main chunk
        [C]: in ?

jacobdufault avatar Dec 30 '14 17:12 jacobdufault