LingDong- / wax

A tiny programming language that transpiles to C, C++, Java, TypeScript, Python, C#, Swift, Lua and WebAssembly 🚀
https://waxc.netlify.app/
MIT License
783 stars 45 forks source link

[file error] cannot read file #27

Open bardo84 opened 2 years ago

bardo84 commented 2 years ago

Under Windows, waxc works with the files in the examples folder, but not with new files. Working from a examples file, copy, rename, edit, waxc works again. There is a slight 3 byte difference between the helloworld.wax and the self-created hello.wax. Any idea what can cause the different behavior and how to fix it?

chancyk commented 6 months ago

I believe this is caused by the handling of \r\n versus just \n newline characters. Converting them worked for me.