From 5f820ab1ae7e4f5643fea9d07d807169d405f646 Mon Sep 17 00:00:00 2001 From: KeshavAnandCode Date: Sun, 17 May 2026 18:15:13 -0500 Subject: [PATCH] added template.json --- src/foreignthon/template.json | 146 ++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 src/foreignthon/template.json diff --git a/src/foreignthon/template.json b/src/foreignthon/template.json new file mode 100644 index 0000000..03e79d1 --- /dev/null +++ b/src/foreignthon/template.json @@ -0,0 +1,146 @@ +{ + "meta": { + "name": "", + "native_name": "", + "code": "", + "version": "0.1.0", + "authors": [] + }, + "keywords": { + "if": "if", + "else": "else", + "elif": "elif", + "for": "for", + "while": "while", + "def": "def", + "class": "class", + "import": "import", + "from": "from", + "as": "as", + "return": "return", + "break": "break", + "continue": "continue", + "pass": "pass", + "try": "try", + "except": "except", + "finally": "finally", + "raise": "raise", + "with": "with", + "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", + "reversed": "reversed", + "sum": "sum", + "min": "min", + "max": "max", + "abs": "abs", + "round": "round", + "all": "all", + "any": "any", + "isinstance": "isinstance", + "hasattr": "hasattr", + "getattr": "getattr", + "setattr": "setattr", + "repr": "repr", + "format": "format", + "vars": "vars", + "next": "next", + "id": "id", + "chr": "chr", + "hex": "hex", + "bin": "bin", + "oct": "oct" + }, + "exceptions": { + "Exception": "Exception", + "BaseException": "BaseException", + "ValueError": "ValueError", + "TypeError": "TypeError", + "KeyError": "KeyError", + "IndexError": "IndexError", + "AttributeError": "AttributeError", + "NameError": "NameError", + "ImportError": "ImportError", + "OSError": "OSError", + "FileNotFoundError": "FileNotFoundError", + "RuntimeError": "RuntimeError", + "StopIteration": "StopIteration", + "SystemExit": "SystemExit", + "KeyboardInterrupt": "KeyboardInterrupt", + "NotImplementedError": "NotImplementedError", + "ZeroDivisionError": "ZeroDivisionError", + "RecursionError": "RecursionError", + "SyntaxError": "SyntaxError", + "AssertionError": "AssertionError", + "OverflowError": "OverflowError", + "MemoryError": "MemoryError", + "PermissionError": "PermissionError", + "TimeoutError": "TimeoutError" + }, + "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", + "NotImplementedError": "NotImplementedError", + "StopIteration": "StopIteration", + "KeyboardInterrupt": "KeyboardInterrupt", + "PermissionError": "PermissionError", + "TimeoutError": "TimeoutError" + }, + "stdlib": { + "math": "math", + "sys": "sys", + "datetime": "datetime", + "time": "time", + "random": "random", + "collections": "collections", + "pathlib": "pathlib", + "re": "re" + }, + "postfix_keywords": [] +}