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

Support for malayalam characters #4

Closed
Sreyas-Sreelal opened this issue Apr 11, 2020 · 4 comments · Fixed by #6
Closed

Support for malayalam characters #4

Sreyas-Sreelal opened this issue Apr 11, 2020 · 4 comments · Fixed by #6
Assignees

Comments

@Sreyas-Sreelal
Copy link
Owner

No description provided.

@de-sh
Copy link
Contributor

de-sh commented Apr 11, 2020

Some errors I faced

>> pwoli_sadhanam രണ്ട്;
thread 'main' panicked at 'byte index 16 is not a char boundary; it is inside 'ര' (bytes 15..18) of `pwoli_sadhanam രണ്ട്;`', src/libcore/str/mod.rs:2069:5

Rust Users Forum#1909 is a discussion I can point to and the one pointer I could figure out is that using encoding might help us solve this problem.

@Sreyas-Sreelal
Copy link
Owner Author

Yes.I have started the work on malayalam-characters,I'll merge it to master after the work is done :)

@Sreyas-Sreelal
Copy link
Owner Author

Ok this comes with some limitation.The encoding of source code to ASCII,can lead to encoding of string literals too.This should be avoided.One of possible solution that comes to my mind is to create a literal table,before tokenizing the source unit,and replace the literals with reference to corresponding value in table.

@Sreyas-Sreelal
Copy link
Owner Author

Here's a simple example in pure Malayalam keyword.
https://github.com/Sreyas-Sreelal/malluscript/blob/malayalam-characters/examples/pure_malayalam.ms

@Sreyas-Sreelal Sreyas-Sreelal linked a pull request Apr 13, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants