{"id":24230473,"url":"https://github.com/schachte/tartufo","last_synced_at":"2026-06-24T17:31:08.223Z","repository":{"id":232124020,"uuid":"783512287","full_name":"Schachte/Tartufo","owner":"Schachte","description":"Experimental interpreter written in Typescript","archived":false,"fork":false,"pushed_at":"2024-04-24T03:45:35.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T13:37:17.664Z","etag":null,"topics":["interpreter","language","programing","programming-languages","typescript","typescript-interpreter"],"latest_commit_sha":null,"homepage":"https://ryan-schachte.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Schachte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-08T03:23:12.000Z","updated_at":"2024-06-25T07:42:45.000Z","dependencies_parsed_at":"2024-04-08T04:30:11.502Z","dependency_job_id":"b58b8b66-170b-4208-91a9-ad9c293c6acc","html_url":"https://github.com/Schachte/Tartufo","commit_stats":null,"previous_names":["schachte/tuffielang","schachte/tartufo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schachte%2FTartufo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schachte%2FTartufo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schachte%2FTartufo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schachte%2FTartufo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Schachte","download_url":"https://codeload.github.com/Schachte/Tartufo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827081,"owners_count":20026599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interpreter","language","programing","programming-languages","typescript","typescript-interpreter"],"created_at":"2025-01-14T13:29:13.844Z","updated_at":"2026-06-24T17:31:08.217Z","avatar_url":"https://github.com/Schachte.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TuffieLang\n\nWIP interpreter for a dynamic scripting language built using Typescript to play around with lexers and parsers.\n\n## Tests\n`npm run test`\n\n## Usage\n\n```ts\nimport { Lexer } from \"./lexer\";\nimport { Parser } from \"./parser\";\n\nconst sourceCode = `\nlet hello = 2; \nlet test = 'sup';\n`;\n\nconst lexer = new Lexer(sourceCode);\nconst tokens = lexer.tokenize();\n\nconst parser = new Parser(tokens);\nconst program = parser.parse();\n\nfor (const node of program.body) {\n  console.log(\n    `AST: ${JSON.stringify(node, null, 2)}\\nSerialized output: ${\n      node.debug \u0026\u0026 node.debug()\n    }\\n`\n  );\n}\n```\n\n## REPL Demo\n```\n──────▄▀▄─────▄▀▄\n─────▄█░░▀▀▀▀▀░░█▄\n─▄▄──█░░░░░░░░░░░█──▄▄\n█▄▄█─█░░▀░░┬░░▀░░█─█▄▄█\n-----------------------\n--    TUFFIE LANG    --\n-----------------------\n(Interactive REPL v1.0)\n\n  \u003cctrl\u003e + c to exit\n\n\n🐈 \u003e let dat=6+6*2/9;\n{ \n  variables: [\n    {\n      dat: 7.333333333333333\n    }\n  ]\n}\n```\n\n## Output\n\n```\nAST: {\n  \"type\": \"LetStatement\",\n  \"identifier\": \"hello\",\n  \"expression\": {\n    \"type\": \"NumberExpression\",\n    \"literal\": 2\n  }\n}\nSerialized output: let hello = 2;\n\nAST: {\n  \"type\": \"LetStatement\",\n  \"identifier\": \"test\",\n  \"expression\": {\n    \"type\": \"StringExpression\",\n    \"literal\": \"sup\"\n  }\n}\nSerialized output: let test = 'sup';\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschachte%2Ftartufo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschachte%2Ftartufo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschachte%2Ftartufo/lists"}