{"id":13621513,"url":"https://github.com/mgechev/tiny-compiler","last_synced_at":"2025-04-04T21:07:39.491Z","repository":{"id":44420249,"uuid":"102836416","full_name":"mgechev/tiny-compiler","owner":"mgechev","description":"A tiny evaluator and compiler of arithmetic expressions.","archived":false,"fork":false,"pushed_at":"2020-01-21T21:08:16.000Z","size":419,"stargazers_count":779,"open_issues_count":0,"forks_count":77,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-28T20:06:57.566Z","etag":null,"topics":["ast","compiler","compiler-construction","compiler-principles","interpreter"],"latest_commit_sha":null,"homepage":"https://mgv.io/tiny","language":"JavaScript","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/mgechev.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}},"created_at":"2017-09-08T08:12:22.000Z","updated_at":"2025-02-27T10:37:54.000Z","dependencies_parsed_at":"2022-07-14T18:47:19.736Z","dependency_job_id":null,"html_url":"https://github.com/mgechev/tiny-compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgechev%2Ftiny-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgechev%2Ftiny-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgechev%2Ftiny-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgechev%2Ftiny-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgechev","download_url":"https://codeload.github.com/mgechev/tiny-compiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249524,"owners_count":20908212,"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":["ast","compiler","compiler-construction","compiler-principles","interpreter"],"created_at":"2024-08-01T21:01:07.304Z","updated_at":"2025-04-04T21:07:39.475Z","avatar_url":"https://github.com/mgechev.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Programming Languages"],"sub_categories":["JavaScript"],"readme":"# Tiny Interpreter and Compiler\n\nA tiny interpreter and compiler which shows the basics of compiler development.\n\nFor more details see [the source](./tiny.js) or my blog post \"[Implementing a Simple Compiler on 25 Lines of JavaScript](http://blog.mgechev.com/2017/09/16/developing-simple-interpreter-transpiler-compiler-tutorial/)\"\n\nAlong the implementation you can find sample (and simple) implementations of:\n\n- Lexer which produces a list of tokens (module for lexical analysis).\n- Parser which produces an Abstract Syntax Tree (AST) (module for syntax analysis).\n- Interpreter which traverses and evaluates the AST.\n- EBNF grammar.\n- Recursive Descent Parsing.\n\n## You want even smaller compiler?\n\nHere it is!\n\n[![Compiler in a Tweet](/assets/tweet.png)](https://twitter.com/mgechev/status/955211214719602688)\n\n# License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgechev%2Ftiny-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgechev%2Ftiny-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgechev%2Ftiny-compiler/lists"}