Logo Lanfrica

dafow/darijs

Domaine:

natural language processing

Type de record:

software
Créateur:
daf
Hôte:
An implementation of JavaScript in the Moroccan arabic dialect # dari.js ## To non-darija speakers: > Moroccan Arabic or Moroccan Darija (الدارجة, [ddæɾiʒæ] in Morocco) is a member of the Maghrebi Arabic language continuum spoken in Morocco. It is mutually intelligible to some extent with Algerian Arabic and to a lesser extent with Tunisian Arabic. It has been heavily influenced by Berber, Latin (African Romance), French, and Spanish. This repository aims to help non-English speakers to have fun with programming by translating JavaScript keywords into an interpretable language clone. This is mainly done through pegjs to generate a new grammar and parser for darijs (translating keywords into their darija equivalent: see table below for a list of keywords). This allows constructing an AST consumed by escodegen which generates good old regular ECMAScript. You can find an example of a live interpreter hosted here 172.104.11.22 (hint: "terjem" means "translate" and "bdah" obviously means "start (the script)" ## hhhhhhhhhhhhhhhhhhhhhhhhhh bghiti t3elem lprogramation bla ma t3elem langlai ? sara7a sir t9ra langlai walakin bda bhada la jak sahel ## tarjama darijs -> js (JavaScript) | js | darijs | | --------------|:--------------| | break | w9ef | | case | ilakan | | catch | ched | | continue | zid | | debugger | 7ellel | | default | difo | | delete | m7i | | do | dir | | else | wla | | false | ghalat | | finally | akhiran | | for | lkol | | function | dalla | | get | jib | | if | ilakan | | instanceof | jayamen | | in | fi | | new | sne3 | | null | walo | | return | reje3 | | set | 9ad | | switch | 3la7assab | | this | had | | throw | lo7 | | true | sa7i7 | | try | jereb | | typeof | mennaw3 | | var | goul | | void | faragh | | while | bidman | | with | m3a | | console.log | kteb.message | ## amtal ```javascript goul aghrom = 1.5; goul ch7albina = 6; goul laddition = 0; lkol (i = 0; i < ch7albina; i++) { lad …