From e34a08a5baf389cf4744a2517e7cc0b0ec823b61 Mon Sep 17 00:00:00 2001 From: AnishB Date: Sat, 13 Jun 2026 11:04:21 -0500 Subject: [PATCH] finished beta version --- .../__init__.py | 0 src/foreignthon_te/template.json | 125 +++++++++++++++++ src/foreignthon_template/template.json | 132 ------------------ 3 files changed, 125 insertions(+), 132 deletions(-) rename src/{foreignthon_template => foreignthon_te}/__init__.py (100%) create mode 100644 src/foreignthon_te/template.json delete mode 100644 src/foreignthon_template/template.json diff --git a/src/foreignthon_template/__init__.py b/src/foreignthon_te/__init__.py similarity index 100% rename from src/foreignthon_template/__init__.py rename to src/foreignthon_te/__init__.py diff --git a/src/foreignthon_te/template.json b/src/foreignthon_te/template.json new file mode 100644 index 0000000..46ae5a4 --- /dev/null +++ b/src/foreignthon_te/template.json @@ -0,0 +1,125 @@ +{ + "meta": { + "name": "Telugu", + "native_name": "తెలుగు", + "code": "te" + }, + + "keywords": { + "ఒకవేళ": "if", + "లేనిపక్షంలో": "else", + "లేకపోతే_ఒకవేళ": "elif", + "ప్రతి": "for", + "ఎంతవరకు": "while", + "రూపొందించు": "def", + "మాదిరి": "class", + "ఇవ్వు": "return", + "విరమించు": "break", + "ముందుకెళ్లు": "continue", + "ఖాళీగా_ఉంచు": "pass", + "యత్నించు": "try", + "పొరపాటు": "except", + "ముగింపుగా": "finally", + "ఎగరేయి": "raise", + "వాడుతూ": "with", + "చేర్చు": "import", + "నుంచీ": "from", + "పేరుతో": "as", + "లోపల": "in", + "అదే": "is", + "మరియు": "and", + "లేదంటే": "or", + "కాదు": "not", + "తొలగించు": "del", + "సర్వత్ర": "global", + "బయటస్థ": "nonlocal", + "నిర్ధారించు": "assert", + "ఉత్పత్తిచేయి": "yield", + "వేచిచూడు": "await", + "అసమకాల": "async", + "సూక్ష్మక్రియ": "lambda", + "అవును": "True", + "కాదు_విలువ": "False", + "శూన్యం": "None" + }, + + "builtins": { + "చూపు": "print", + "అడుగు": "input", + "పొడవు": "len", + "పరిధి": "range", + "రకం": "type", + "పూర్తిసంఖ్య": "int", + "దశాంశం": "float", + "వాక్యం": "str", + "జాబితా": "list", + "నిఘంటువు": "dict", + "సమితి": "set", + "జత": "tuple", + "తార్కికం": "bool", + "తెరువు": "open", + "క్రమసంఖ్యతో": "enumerate", + "మార్పు": "map", + "వడపోసు": "filter", + "క్రమబద్ధం": "sorted", + "మొత్తం": "sum", + "అత్యల్పం": "min", + "అత్యధికం": "max", + "పరమ": "abs", + "గుండ్రపరచు": "round", + "అన్నీ": "all", + "ఏదైనా": "any", + "తదుపరి": "next", + "గుర్తింపు": "id", + "అక్షరం": "chr", + "తిరగమారు": "reversed" + }, + + "exceptions": { + "మినహాయింపు": "Exception", + "మూలమినహాయింపు": "BaseException", + "విలువలోపం": "ValueError", + "రకంలోపం": "TypeError", + "కీలకలోపం": "KeyError", + "స్థానలోపం": "IndexError", + "లక్షణలోపం": "AttributeError", + "పేరులోపం": "NameError", + "చేర్పులోపం": "ImportError", + "దస్త్రంలేదు": "FileNotFoundError", + "నిర్వహణలోపం": "RuntimeError", + "సున్నాతోభాగహారం": "ZeroDivisionError", + "వ్యాకరణలోపం": "SyntaxError", + "నిర్ధారణలోపం": "AssertionError", + "జ్ఞాపకలోపం": "MemoryError", + "మితిమీరినవిలువ": "OverflowError", + "పునరావృతిమితి": "RecursionError", + "అనుమతిలేదు": "PermissionError", + "సమయముగిసింది": "TimeoutError", + "వ్యవస్థనిష్క్రమణ": "SystemExit", + "కీబోర్డు_అంతరాయం": "KeyboardInterrupt" + }, + + "stdlib": { + "గణితం": "math", + "వ్యవస్థ": "sys", + "తేదీసమయం": "datetime", + "సమయం": "time", + "యాదృచ్ఛికం": "random", + "సేకరణలు": "collections", + "మార్గాలు": "pathlib", + "నమూనాలు": "re" + }, + + "postfix_keywords": [ + "ప్రతి", + "ఎంతవరకు", + "రూపొందించు", + "మాదిరి", + "ఇవ్వు", + "యత్నించు", + "ఎగరేయి", + "వాడుతూ", + "చేర్చు", + "నుంచీ" + ] +} \ No newline at end of file diff --git a/src/foreignthon_template/template.json b/src/foreignthon_template/template.json deleted file mode 100644 index efa8316..0000000 --- a/src/foreignthon_template/template.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "meta": { - "name": "Template", - "native_name": "Template", - "code": "template" - }, - "keywords": { - "if": "if", - "else": "else", - "elif": "elif", - "for": "for", - "while": "while", - "def": "def", - "class": "class", - "return": "return", - "break": "break", - "continue": "continue", - "pass": "pass", - "try": "try", - "except": "except", - "finally": "finally", - "raise": "raise", - "with": "with", - "import": "import", - "from": "from", - "as": "as", - "in": "in", - "is": "is", - "and": "and", - "or": "or", - "not": "not", - "del": "del", - "global": "global", - "nonlocal": "nonlocal", - "assert": "assert", - "yield": "yield", - "await": "await", - "async": "async", - "lambda": "lambda", - "True": "True", - "False": "False", - "None": "None" - }, - "builtins": { - "print": "print", - "input": "input", - "len": "len", - "range": "range", - "type": "type", - "int": "int", - "float": "float", - "str": "str", - "list": "list", - "dict": "dict", - "set": "set", - "tuple": "tuple", - "bool": "bool", - "open": "open", - "enumerate": "enumerate", - "map": "map", - "filter": "filter", - "sorted": "sorted", - "sum": "sum", - "min": "min", - "max": "max", - "abs": "abs", - "round": "round", - "all": "all", - "any": "any", - "next": "next", - "id": "id", - "chr": "chr", - "reversed": "reversed" - }, - "exceptions": { - "Exception": "Exception", - "BaseException": "BaseException", - "ValueError": "ValueError", - "TypeError": "TypeError", - "KeyError": "KeyError", - "IndexError": "IndexError", - "AttributeError": "AttributeError", - "NameError": "NameError", - "ImportError": "ImportError", - "FileNotFoundError": "FileNotFoundError", - "RuntimeError": "RuntimeError", - "ZeroDivisionError": "ZeroDivisionError", - "SyntaxError": "SyntaxError", - "AssertionError": "AssertionError", - "MemoryError": "MemoryError", - "OverflowError": "OverflowError", - "RecursionError": "RecursionError", - "PermissionError": "PermissionError", - "TimeoutError": "TimeoutError", - "SystemExit": "SystemExit", - "KeyboardInterrupt": "KeyboardInterrupt" - }, - "error_messages": { - "SyntaxError": "SyntaxError", - "ValueError": "ValueError", - "TypeError": "TypeError", - "KeyError": "KeyError", - "IndexError": "IndexError", - "AttributeError": "AttributeError", - "NameError": "NameError", - "ImportError": "ImportError", - "FileNotFoundError": "FileNotFoundError", - "ZeroDivisionError": "ZeroDivisionError", - "RecursionError": "RecursionError", - "RuntimeError": "RuntimeError", - "MemoryError": "MemoryError", - "OverflowError": "OverflowError", - "AssertionError": "AssertionError", - "PermissionError": "PermissionError", - "TimeoutError": "TimeoutError", - "KeyboardInterrupt": "KeyboardInterrupt" - }, - "stdlib": { - "math": "math", - "sys": "sys", - "datetime": "datetime", - "time": "time", - "random": "random", - "collections": "collections", - "pathlib": "pathlib", - "re": "re" - }, - - "postfix_keywords": [ - - ] -} \ No newline at end of file