3 ms·
I remember playing with PEGjs back in the day, making a toy implementation of JS in JS. It had terrible Unicode support though. To build a token out of valid Un
by OtterCoder 9y ago
I remember playing with PEGjs back in the day, making a toy implementation of JS in JS. It had terrible Unicode support though. To build a token out of valid Unicode non-whitespace characters took pages and pages of range definitions. Is that any better here?
- runevault 9y agoRust by default uses Unicode for strings. I would be surprised if this had problems with them.
- OtterCoder 9y agoThe difficulty wasn't in the engine. JS itself is just as good with accepting Unicode characters as Rust, both in code and strings. The problem was with the PEG implementation. Without some sort of shorthand for Unicode families, defining programming languages that are valid in multiple real-world languages becomes a serious burden.
- yellowapple 9y agoThis is one of the things Perl 6 does really well,).