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

Example parser don't work on Node #88

Open
jcubic opened this issue Oct 26, 2017 · 1 comment
Open

Example parser don't work on Node #88

jcubic opened this issue Oct 26, 2017 · 1 comment

Comments

@jcubic
Copy link

jcubic commented Oct 26, 2017

I've used example Calculator grammar with this at the end:

function print(result) {
    console.log(result);
}

__parse(process.argv[2]);

and when I've execute on Linux:

node parser-jscc.js "10+2"

I've got this cryptic exception:

/home/kuba/projects/jcubic/parsers/parser-jscc.js:166
                            throw new Error("At chr " + chr + " and pos " + pos +
                            ^

Error: At chr 49 and pos 0, DfaLex._dfaData[0] appears to exist, but its line property is undefined.
    at DfaLex.exec (/home/kuba/projects/jcubic/parsers/parser-jscc.js:166:14)
    at PcbClass.lex (/home/kuba/projects/jcubic/parsers/parser-jscc.js:331:10)
    at parse (/home/kuba/projects/jcubic/parsers/parser-jscc.js:393:7)
    at Object.<anonymous> (/home/kuba/projects/jcubic/parsers/parser-jscc.js:470:1)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
@adrua
Copy link

adrua commented Feb 26, 2020

i'm same problem

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

2 participants