{"id":26657051,"url":"https://github.com/mcchatman8009/antlr4-editor","last_synced_at":"2025-04-11T11:54:23.901Z","repository":{"id":32883587,"uuid":"144359492","full_name":"mcchatman8009/antlr4-editor","owner":"mcchatman8009","description":"A fully Antlr4 supported NPM Editor Library","archived":false,"fork":false,"pushed_at":"2023-01-04T10:32:39.000Z","size":1154,"stargazers_count":18,"open_issues_count":21,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T08:16:39.230Z","etag":null,"topics":["ace-editor","antlr4","antlr4-editor","codemirror","dsl","editor","grammar","language","monaco-editor","parser","typescript-editor","validator"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcchatman8009.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-11T05:53:34.000Z","updated_at":"2024-05-06T18:40:12.000Z","dependencies_parsed_at":"2023-01-14T22:32:21.366Z","dependency_job_id":null,"html_url":"https://github.com/mcchatman8009/antlr4-editor","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/mcchatman8009%2Fantlr4-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcchatman8009%2Fantlr4-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcchatman8009%2Fantlr4-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcchatman8009%2Fantlr4-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcchatman8009","download_url":"https://codeload.github.com/mcchatman8009/antlr4-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248391290,"owners_count":21095987,"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":["ace-editor","antlr4","antlr4-editor","codemirror","dsl","editor","grammar","language","monaco-editor","parser","typescript-editor","validator"],"created_at":"2025-03-25T08:16:43.763Z","updated_at":"2025-04-11T11:54:23.880Z","avatar_url":"https://github.com/mcchatman8009.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Antlr4 Editor\n\n## Overview\nThe goal of this project/library is to provide developers with a simple to use API to develop\nweb compatible code editors, using only Antlr4 Grammars. Allowing for the creation of the editor and language\nto be more unified during the development process. \n\n**(Currently the only fully supported editor platform is codemirror at the moment)**\n\n## Getting Started\n```bash\nnpm install -S antlr4-editor\n```\n\n### Example Generating An Editor\n\nGenerate the source files for creating a C Editor.\n```javascript\nantlr4-editor -o src/editor -r compilationUnit samples/c/C.g4\n```\nExample Output\n![Output Example](./images/output.png)\n\n\nRun the Test Editor Application\n```javascript\nnode ./src/editor/test-editor-app.js\n```\n\n\n### Javascript Code of a Simple C Editor\n\nGiven that you've generated editor source code, the following code creates\na simple C language code editor.\n\n```javascript\nconst createEditor = require('./editor').createEditor;\n\nconst editor = createEditor();\neditor.setEditorPlaceholderText('Enter your code here...');\n\neditor.setShowLineNumbers(true);\neditor.setDisplayEditorErrors(true);\neditor.focus();\n\nconst el = editor.getDomElement();\n\n// Render the editor\ndocument.body.appendChild(el);\n\n```\n\n### TODOS\n\n- [ ] Improve API Documentation\n- [ ] Add Ace Editor Support\n- [ ] Add Monaco Editor Support\n- [ ] Create Sample Editors\n- [ ] Publish Sample Editors\n- [ ] Create Tutorials\n- [X] Add CodeMirror Support\n- [ ] Provide CLI Support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcchatman8009%2Fantlr4-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcchatman8009%2Fantlr4-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcchatman8009%2Fantlr4-editor/lists"}