zaach/jison — Issue #64: Syntax errors when trying to parse a .jison file with windows-style line breaks
Author: mines
Created: 2011-10-15 13:39:33+00:00
State: open

jison was throwing out some syntax errors when trying to parse a file edited in notepad++ on Windows.

```
$ jison calculator.jison

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token ILLEGAL
```

I realized that the editor was using Dos/Windows line breaks (CR+LF)

Fixed it by converting all line breaks to UNIX LFs.