dylan-hackers / mindy

Mindy - minimal compiler-interpreter for Dylan
Other
21 stars 9 forks source link

mindycomp generates unusable module when source file is using Windows line ending #72

Open phongphan opened 8 years ago

phongphan commented 8 years ago

Hi

Looks like mindycomp's lexer incorrectly emitting symbol with a trailing '\r' to make_token function, result in unusable module.

step to reproduct:

The result dbc file might be a bit bigger than the one that using Unix line-ending and cannot be load by mindy interpreter.

mindycomp The bottom is the result from CRLF source file. The offending token is Dyland^M.