librelist archives

« back to archive

Getting very odd bug only on one system that I can't seem to get past

Getting very odd bug only on one system that I can't seem to get past

From:
Robert Plummer
Date:
2013-05-25 @ 22:39
Hey Guys,

I'm getting the following error in windows 7 64bit:
C:\Users\robert\Documents\GitHub\jison\ports\csharp\Jison\Jison>jison
formula.ji
son > c:\Users\robert\jison.log

C:\Users\robert\AppData\Roaming\npm\node_modules\jison\lib\cli.js:77
            throw e;
                  ^
Error: Parse error on line 12:
if(yy.obj.type == "c
---------------------^
Expecting '{', '}', 'ACTION_BODY', got 'NAME'
    at Object.parseError
(C:\Users\robert\AppData\Roaming\npm\node_modules\jison
\node_modules\lex-parser\lex-parser.js:133:11)
    at Object.parse
(C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node
_modules\lex-parser\lex-parser.js:185:22)
    at Object.exports.parse
(C:\Users\robert\AppData\Roaming\npm\node_modules\ji
son\node_modules\lex-parser\lex-parser.js:563:48)
    at parseLex
(C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node_mod
ules\ebnf-parser\ebnf-parser.js:44:21)
    at Object.bnf.yy.addDeclaration
(C:\Users\robert\AppData\Roaming\npm\node_mo
dules\jison\node_modules\ebnf-parser\ebnf-parser.js:14:23)
    at Object.anonymous
(C:\Users\robert\AppData\Roaming\npm\node_modules\jison\
node_modules\ebnf-parser\parser.js:16:30)
    at Object.parse
(C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node
_modules\ebnf-parser\parser.js:193:36)
    at Object.parse
(C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node
_modules\ebnf-parser\ebnf-parser.js:5:55)
    at processGrammar
(C:\Users\robert\AppData\Roaming\npm\node_modules\jison\li
b\cli.js:72:30)
    at Object.exports.main
(C:\Users\robert\AppData\Roaming\npm\node_modules\jis
on\lib\cli.js:61:56)

The file that is causing it is here (

https://github.com/robertleeplummerjr/jison/blob/master/ports/csharp/Jison/Jison/formula.jison)
, when I check this out directly from github, I get the error above,
it
just seems very odd, and it only seems to happen on one system.  What can I
do to fix this?

-- 
Robert Plummer

Re: Getting very odd bug only on one system that I can't seem to get past

From:
Robert Plummer
Date:
2013-05-25 @ 23:07
Ah found it.  Seems to be the inclusion of the "\r" character for line
endings (which no doubt windows caused), though I'm not sure why this only
affects one computer.  Zach, would it be possible to handle this character,
or ignore it?

On Sat, May 25, 2013 at 3:39 PM, Robert Plummer <
robertleeplummerjr@gmail.com> wrote:

> Hey Guys,
>
> I'm getting the following error in windows 7 64bit:
> C:\Users\robert\Documents\GitHub\jison\ports\csharp\Jison\Jison>jison
> formula.ji
> son > c:\Users\robert\jison.log
>
> C:\Users\robert\AppData\Roaming\npm\node_modules\jison\lib\cli.js:77
>             throw e;
>                   ^
> Error: Parse error on line 12:
> if(yy.obj.type == "c
> ---------------------^
> Expecting '{', '}', 'ACTION_BODY', got 'NAME'
>     at Object.parseError
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jison
> \node_modules\lex-parser\lex-parser.js:133:11)
>     at Object.parse
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node
> _modules\lex-parser\lex-parser.js:185:22)
>     at Object.exports.parse
> (C:\Users\robert\AppData\Roaming\npm\node_modules\ji
> son\node_modules\lex-parser\lex-parser.js:563:48)
>     at parseLex
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node_mod
> ules\ebnf-parser\ebnf-parser.js:44:21)
>     at Object.bnf.yy.addDeclaration
> (C:\Users\robert\AppData\Roaming\npm\node_mo
> dules\jison\node_modules\ebnf-parser\ebnf-parser.js:14:23)
>     at Object.anonymous
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jison\
> node_modules\ebnf-parser\parser.js:16:30)
>     at Object.parse
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node
> _modules\ebnf-parser\parser.js:193:36)
>     at Object.parse
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jison\node
> _modules\ebnf-parser\ebnf-parser.js:5:55)
>     at processGrammar
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jison\li
> b\cli.js:72:30)
>     at Object.exports.main
> (C:\Users\robert\AppData\Roaming\npm\node_modules\jis
> on\lib\cli.js:61:56)
>
> The file that is causing it is here (
> 
https://github.com/robertleeplummerjr/jison/blob/master/ports/csharp/Jison/Jison/formula.jison)
, when I check this out directly from github, I get the error above, it
> just seems very odd, and it only seems to happen on one system.  What can I
> do to fix this?
>
> --
> Robert Plummer




-- 
Robert Plummer