{"id":24362957,"url":"https://github.com/shivamka1/js-dot-antlr-parser","last_synced_at":"2026-05-26T20:07:45.289Z","repository":{"id":57279554,"uuid":"132766798","full_name":"shivamka1/js-dot-antlr-parser","owner":"shivamka1","description":" The objective of this project is to demostrate how to capture diagnostics i.e., semantic and syntactic errors for DOT language using ANTLR parser written in Javascript.","archived":false,"fork":false,"pushed_at":"2018-05-16T15:00:53.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-16T09:25:18.861Z","etag":null,"topics":["antlr4","diagnostics","dot","javascript","parser"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shivamka1.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-05-09T14:12:46.000Z","updated_at":"2018-05-16T15:00:55.000Z","dependencies_parsed_at":"2022-09-17T13:52:01.708Z","dependency_job_id":null,"html_url":"https://github.com/shivamka1/js-dot-antlr-parser","commit_stats":null,"previous_names":["codingkapoor/javascript-dot-antlr-parser","codingkapoor/js-dot-antlr-parser","shivam-880/js-dot-antlr-parser","iamsmkr/js-dot-antlr-parser","shivamka1/js-dot-antlr-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shivamka1/js-dot-antlr-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamka1%2Fjs-dot-antlr-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamka1%2Fjs-dot-antlr-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamka1%2Fjs-dot-antlr-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamka1%2Fjs-dot-antlr-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivamka1","download_url":"https://codeload.github.com/shivamka1/js-dot-antlr-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivamka1%2Fjs-dot-antlr-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33536876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","diagnostics","dot","javascript","parser"],"created_at":"2025-01-18T22:54:31.822Z","updated_at":"2026-05-26T20:07:45.263Z","avatar_url":"https://github.com/shivamka1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-dot-antlr-parser\nThe objective of this project is to demostrate how to capture diagnostics i.e., semantic and syntactic errors for DOT language using ANTLR parser written in Javascript.\n\n# Installation\n```script\nnpm install --save js-dot-antlr-parser\n```\n\n# Usage\n```javascript\nconst jdap = require('js-dot-antlr-parser');\nconsole.log(JSON.stringify(jdap.doValidation(\"gaph { \\n a -- b \\n a - b \\n b - a [color=blue] \\n }\")));\nconsole.log(JSON.stringify(jdap.doValidation(\"gaph { \\n a -- b \\n a - b \\n b - a [color=blue] \\n }\").semanticErrors));\nconsole.log(JSON.stringify(jdap.doValidation(\"gaph { \\n a -- b \\n a - b \\n b - a [color=blue] \\n }\").syntacticErrors));\n```\n\n# Output\n```\n{\n\t\"syntacticErrors\": [{\n\t\t\"message\": \"token recognition error at: '- '\",\n\t\t\"line\": 2,\n\t\t\"character\": 3,\n\t\t\"symbol\": \"\",\n\t\t\"length\": 1\n\t}, {\n\t\t\"message\": \"token recognition error at: '- '\",\n\t\t\"line\": 3,\n\t\t\"character\": 3,\n\t\t\"symbol\": \"\",\n\t\t\"length\": 1\n\t}],\n\t\"semanticErrors\": [{\n\t\t\"message\": \"mismatched input 'gaph' expecting {STRICT, GRAPH, DIGRAPH}\",\n\t\t\"line\": 0,\n\t\t\"character\": 0,\n\t\t\"symbol\": \"gaph\",\n\t\t\"length\": 4\n\t}]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivamka1%2Fjs-dot-antlr-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivamka1%2Fjs-dot-antlr-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivamka1%2Fjs-dot-antlr-parser/lists"}