matter fact sultanc works on both either msg = «quoted string» and also msg = "quoted string" both works and has being established from day one. but for the example > PI=٣.١٤٢ and PI=3.142, i wanted currently worked with PI=3.142 but this has being a big thing for me to add numbers such your example > PI=٣.١٤٢. because of one reason, those numbers are not classical Arabic, they are not even Arabic numbers but they are used. my goal is to keep Arabic classical through out the Compiler. But i am still thinking of that and if I should add it or not.
Hahaha True and that is what is unfortunate, Arabs created those numbers and created 0 which from that point computing started. but they do not use them. What hurts more dispute the number of people talking Arabic we do not even have a programming language. If you search o google you can find only toy languages, thats why took the matter in hand. Also to fitful my childhood dream. Swing by SultanC repo clone the repo, it works on both Arabic and English Syntax. Break the Compiler and let me know what you like or dislike or any issues. It support wider OS now native or via LLVM, and much appreciated for the feedback.
When I was young I wanted to learn programming, but I couldn't. Every language, book and error message was in English, and I didn't know English yet. I used to dream of a programming language in Arabic. I only started programming after I learned English, and for the past 2 years I've been building that language.
SultanC is a compiled systems language designed Arabic-first. Keywords, types and the standard library all have Arabic names, and every one of them also has an English spelling, so the same program can be switched between Arabic and English with one click, both ways.
- Native code generation for arm64 macOS and x86_64 Linux, plus an LLVM backend for cross-compiling to other targets
- The playground runs the full compiler in a Web Worker. Nothing is sent to a server
- Identifiers follow how Arabic is actually typed: tatweel (ـ) is ignored and أ / إ / آ are treated as ا, so the same name typed different ways is the same name
- Error messages in Arabic or English
My hope is that a kid who is where I was can start programming in their own language today, without waiting years to learn English first.
I'd love to hear what you think, and where it breaks.