Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parinfer.js #23

Open
gavlooth opened this issue Dec 25, 2017 · 4 comments
Open

Parinfer.js #23

gavlooth opened this issue Dec 25, 2017 · 4 comments

Comments

@gavlooth
Copy link

I am trying to compile parinfer.js to lua. I am newbie in lua but it seems to be something wrong with the implementation of the split method from js to lua ?

lua: TypeError: Cannot read property 'split' of undefined
at (./castl/core_objects.lua:348)
at __index (./castl/core_objects.lua:296)
at getInitialResult (./parinfer-js.lua:95)
at processText (./parinfer-js.lua:1075)
at intentMode1 (./parinfer-js.lua:1152)
at (out.lua:14)
at ([C]:-1)

@PaulBernier
Copy link
Owner

Can you please provide a link to the exact Javascript file you have compiled? (exact source and version)

@gavlooth
Copy link
Author

gavlooth commented Dec 26, 2017

No problem : https://github.com/shaunlebron/parinfer/blob/master/lib/parinfer.js
I think that parinfer has zero dependencies,
Downloaded with curl -O -L https://raw.githubusercontent.com/shaunlebron/parinfer/master/lib/parinfer.js

@gavlooth
Copy link
Author

Note that I did modifu the js file by unboxing the top level function in order to expose the API object.

@oakmac
Copy link

oakmac commented Feb 22, 2021

FYI - there is an implementation of the Parinfer core algorithm in Lua now: https://github.com/oakmac/parinfer-lua

cc @gavlooth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants