Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
aliases:
- "universalpython"
- "romanurdupython"

letters:
start : "a"
end : "z"

numbers:
start : "0"
end : "9"

reserved:

# Core Statements & Logic
"chapo" : "print"
"wrna_agr" : "elif"
"agr" : "if"
"wrna" : "else"
"jab_tak" : "while"
"har" : "for"
"andar" : "in"
"andar_nahi" : "not in"
"pucho" : "input"
"toro" : "break"
"jari" : "continue"
"guzro" : "pass"
"sahi" : "True"
"ghalat" : "False"
"hai" : "is"
"jamaat" : "class"
"tareef" : "def"
"__shuru__" : "__init__"
"khud" : "self"
"wapas" : "return"
"aur" : "and"
"ya" : "or"
"nahi" : "not"
"milao" : "match"
"soorat" : "case"

# Error Handling
"koshish" : "try"
"masla" : "except"
"btao" : "raise"

# Imports & Contexts
"se" : "from"
"le_ao" : "import"
"bna_kr" : "as"
"saath" : "with"
"aalmi" : "global"

# Built-in Types & Advanced Collections
"jumla" : "str"
"adad" : "int"
"isharia" : "float"
"mushkil" : "complex"
"mantaq" : "bool"
"fehrist" : "list"
"jor" : "tuple"
"hadd" : "range"
"lughat" : "dict"
"gurooh" : "set"
"sakin_gurooh" : "frozenset"
"khali" : "None"
"khali_qisam" : "NoneType"

# Core Built-in Functions & Methods
"shamil" : "append"
"nikalo" : "pop"
"sab" : "all"
"koi" : "any"
"lambai" : "len"
"qisam" : "type"
"tarteeb" : "sort"
"saaf" : "clear"
"takrar" : "iter"
"sab_se_kam" : "min"
"sab_se_ziada" : "max"

# File Operations
"kholo" : "open"
"parho" : "read"
"likho" : "write"

# Math operations
"jazar" : "sqrt"
"uncha_karo" : "ceil"
"neeche_karo" : "floor"
"mutlaq" : "abs"
"quwat" : "pow"

# OS Module
"jaga_fehrist" : "listdir"
"jaga_mitao" : "rmdir"
"jaga_banao" : "mkdir"
"mitao" : "remove"
"naam_badlo" : "rename"
"jaga_bnao" : "makedirs"
1 change: 1 addition & 0 deletions universalpython/languages/ur_rm/__init__.py

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please use ur-Latn instead of ur_rm

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

100 changes: 100 additions & 0 deletions universalpython/languages/ur_rm/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
aliases:
- "universalpython"
- "romanurdupython"

letters:
start : "a"
end : "z"

numbers:
start : "0"
end : "9"

reserved:

# Core Statements & Logic

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, please take the Urdu (in arabic script) file as an example, because this one contains unnecessary identifiers/syntax.
Also, the roman one should just be a transliterated version of the arabic one. Example: We have "لکھو" in Arabic, but you've added "chapo" here.

"chapo" : "print"
"wrna_agr" : "elif"
"agr" : "if"
"wrna" : "else"
"jab_tak" : "while"
"har" : "for"
"andar" : "in"
"andar_nahi" : "not in"
"pucho" : "input"
"toro" : "break"
"jari" : "continue"
"guzro" : "pass"
"sahi" : "True"
"ghalat" : "False"
"hai" : "is"
"jamaat" : "class"
"tareef" : "def"
"__shuru__" : "__init__"
"khud" : "self"
"wapas" : "return"
"aur" : "and"
"ya" : "or"
"nahi" : "not"
"milao" : "match"
"soorat" : "case"

# Error Handling
"koshish" : "try"
"masla" : "except"
"btao" : "raise"

# Imports & Contexts
"se" : "from"
"le_ao" : "import"
"bna_kr" : "as"
"saath" : "with"
"aalmi" : "global"

# Built-in Types & Advanced Collections
"jumla" : "str"
"adad" : "int"
"isharia" : "float"
"mushkil" : "complex"
"mantaq" : "bool"
"fehrist" : "list"
"jor" : "tuple"
"hadd" : "range"
"lughat" : "dict"
"gurooh" : "set"
"sakin_gurooh" : "frozenset"
"khali" : "None"
"khali_qisam" : "NoneType"

# Core Built-in Functions & Methods
"shamil" : "append"
"nikalo" : "pop"
"sab" : "all"
"koi" : "any"
"lambai" : "len"
"qisam" : "type"
"tarteeb" : "sort"
"saaf" : "clear"
"takrar" : "iter"
"sab_se_kam" : "min"
"sab_se_ziada" : "max"

# File Operations
"kholo" : "open"
"parho" : "read"
"likho" : "write"

# Math operations
"jazar" : "sqrt"
"uncha_karo" : "ceil"
"neeche_karo" : "floor"
"mutlaq" : "abs"
"quwat" : "pow"

# OS Module
"jaga_fehrist" : "listdir"
"jaga_mitao" : "rmdir"
"jaga_banao" : "mkdir"
"mitao" : "remove"
"naam_badlo" : "rename"
"jaghe_bnao" : "makedirs"