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

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

Open
phongphan opened this issue Nov 3, 2015 · 0 comments

Comments

@phongphan
Copy link
Contributor

phongphan commented Nov 3, 2015

Hi

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

step to reproduct:

  • convert line-ending of the file `libraries/dylan/strings.dylan' to Windows line-ending (CRLF).
  • compile with mindycomp -ldylan strings.dylan

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant