librelist archives

« back to archive

Running parser on tikiwikiparser

Running parser on tikiwikiparser

From:
Robert Plummer
Date:
2012-01-17 @ 19:22
Hey Guys,
When I run tikiwiki parser on the latest jison installed through npm, I get
the following error:
{CODE()}
TypeError: Cannot read property 'rules' of undefined
    at prepareRules
(/usr/local/lib/node_modules/jison/lib/jison/lexer.js:36:47)
    at Object.buildActions
(/usr/local/lib/node_modules/jison/lib/jison/lexer.js:105:18)
    at Object.RegExpLexer
(/usr/local/lib/node_modules/jison/lib/jison/lexer.js:122:39)
    at [object Object].Jison_Generator
(/usr/local/lib/node_modules/jison/lib/jison.js:102:22)
    at [object Object].<anonymous>
(/usr/local/lib/node_modules/jison/lib/jison/util/typal.js:23:28)
    at new <anonymous>
(/usr/local/lib/node_modules/jison/lib/jison/util/typal.js:77:70)
    at new Jison_Generator
(/usr/local/lib/node_modules/jison/lib/jison.js:1527:20)
    at processGrammar
(/usr/local/lib/node_modules/jison/lib/jison/cli-wrapper.js:82:21)
    at Object.main
(/usr/local/lib/node_modules/jison/lib/jison/cli-wrapper.js:49:46)
    at Object.<anonymous>
(/usr/local/lib/node_modules/jison/lib/jison/cli-wrapper.js:87:13)
] killed: false, code: 1, signal: null }
{CODE}

I tried to do some debugging, but it ended up killing my script's lexer
rules.  Can you check and see what is happening? In the mean time I will
try and fix as well.

-- 
Robert Plummer

Re: [jison] Running parser on tikiwikiparser

From:
Zachary Carter
Date:
2012-01-18 @ 17:43
Hey Robert,

Start conditions must be placed in a single line. However, you can spit
them up into multiple declarations to avoid having one long line:

%s bold box center colortext italic
%s header6 header5 header4 header3 header2 header1
%s link strikethrough table titlebar underscore wikilink

On Tue, Jan 17, 2012 at 2:22 PM, Robert Plummer <
robertleeplummerjr@gmail.com> wrote:

> Hey Guys,
> When I run tikiwiki parser on the latest jison installed through npm, I
> get the following error:
> {CODE()}
> TypeError: Cannot read property 'rules' of undefined
>     at prepareRules
> (/usr/local/lib/node_modules/jison/lib/jison/lexer.js:36:47)
>     at Object.buildActions
> (/usr/local/lib/node_modules/jison/lib/jison/lexer.js:105:18)
>     at Object.RegExpLexer
> (/usr/local/lib/node_modules/jison/lib/jison/lexer.js:122:39)
>     at [object Object].Jison_Generator
> (/usr/local/lib/node_modules/jison/lib/jison.js:102:22)
>     at [object Object].<anonymous>
> (/usr/local/lib/node_modules/jison/lib/jison/util/typal.js:23:28)
>     at new <anonymous>
> (/usr/local/lib/node_modules/jison/lib/jison/util/typal.js:77:70)
>     at new Jison_Generator
> (/usr/local/lib/node_modules/jison/lib/jison.js:1527:20)
>     at processGrammar
> (/usr/local/lib/node_modules/jison/lib/jison/cli-wrapper.js:82:21)
>     at Object.main
> (/usr/local/lib/node_modules/jison/lib/jison/cli-wrapper.js:49:46)
>     at Object.<anonymous>
> (/usr/local/lib/node_modules/jison/lib/jison/cli-wrapper.js:87:13)
> ] killed: false, code: 1, signal: null }
> {CODE}
>
> I tried to do some debugging, but it ended up killing my script's lexer
> rules.  Can you check and see what is happening? In the mean time I will
> try and fix as well.
>
> --
> Robert Plummer
>



-- 
Zach Carter