{"id":26345473,"url":"https://github.com/zhirzh/kotlin-parser-antlr","last_synced_at":"2026-05-21T07:44:08.139Z","repository":{"id":76893421,"uuid":"365596465","full_name":"zhirzh/kotlin-parser-antlr","owner":"zhirzh","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-08T22:01:51.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-18T05:16:06.215Z","etag":null,"topics":["antlr4","kotlin","parser"],"latest_commit_sha":null,"homepage":"https://npm.im/kotlin-parser-antlr","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/zhirzh.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":"2021-05-08T19:34:18.000Z","updated_at":"2022-08-09T03:25:13.000Z","dependencies_parsed_at":"2023-06-18T04:33:58.517Z","dependency_job_id":null,"html_url":"https://github.com/zhirzh/kotlin-parser-antlr","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"4c03652a47e5159413a5460ba4a134b80d5c97d3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhirzh%2Fkotlin-parser-antlr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhirzh%2Fkotlin-parser-antlr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhirzh%2Fkotlin-parser-antlr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhirzh%2Fkotlin-parser-antlr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhirzh","download_url":"https://codeload.github.com/zhirzh/kotlin-parser-antlr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243831368,"owners_count":20354929,"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":["antlr4","kotlin","parser"],"created_at":"2025-03-16T06:18:39.257Z","updated_at":"2026-05-21T07:44:08.110Z","avatar_url":"https://github.com/zhirzh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kotlin parser\n\nKotiln parser that generates a concrete syntax tree using, parser class generated by [ANTLR v4][] and kotlin grammar taken from [kotlinx/ast][].\n\n# Build grammar\n\nFollow these steps to build grammar classes:\n\n1. Download [antlr4 grammar][] for Kotlin\n1. Download [ANTLR tool itself][]\n1. Install Java 8 JRE or JDK\n\nWith everything setup, run the following BASH script to generate classes `KotilnLexer` \u0026 `KotlinParser`.\n\n```bash\n#! /bin/bash\n\nout_dir=./src/kotlin\n\n# cleanup previous built files\nrm -r $out_dir\n\n# build files\njava -jar \u003cPATH TO ANTLR JAR\u003e \\\n  -Dlanguage=JavaScript \\\n  -no-listener \\\n  -Xexact-output-dir \\\n  -o $out_dir/ \\\n  \u003cPATH TO GRAMMAR\u003e\n\n# cleanup\nrm $out_dir/*.interp\nrm $out_dir/*.tokens\n```\n\n[antlr v4]: https://github.com/antlr/antlr4#antlr-v4\n[kotlinx/ast]: https://github.com/kotlinx/ast#kotlinxast\n[antlr4 grammar]: https://github.com/kotlinx/ast/tree/master/grammar-kotlin-parser-common/src/commonAntlr/antlr\n[antlr tool itself]: https://www.antlr.org/download/antlr-4.9.2-complete.jar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhirzh%2Fkotlin-parser-antlr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhirzh%2Fkotlin-parser-antlr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhirzh%2Fkotlin-parser-antlr/lists"}