{"id":20313302,"url":"https://github.com/victor-wiki/codeparser","last_synced_at":"2025-04-11T16:53:14.348Z","repository":{"id":65505901,"uuid":"242953789","full_name":"victor-wiki/CodeParser","owner":"victor-wiki","description":"Parse code using antlr.","archived":false,"fork":false,"pushed_at":"2022-11-21T02:24:45.000Z","size":8006,"stargazers_count":24,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T23:33:03.705Z","etag":null,"topics":["antlr","code","cpp","csharp","java","javascript","parse","parser","php","python"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/victor-wiki.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":"2020-02-25T08:56:48.000Z","updated_at":"2024-12-28T20:31:00.000Z","dependencies_parsed_at":"2023-01-26T14:30:54.716Z","dependency_job_id":null,"html_url":"https://github.com/victor-wiki/CodeParser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor-wiki%2FCodeParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor-wiki%2FCodeParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor-wiki%2FCodeParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victor-wiki%2FCodeParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victor-wiki","download_url":"https://codeload.github.com/victor-wiki/CodeParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248443536,"owners_count":21104443,"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":["antlr","code","cpp","csharp","java","javascript","parse","parser","php","python"],"created_at":"2024-11-14T18:10:35.028Z","updated_at":"2025-04-11T16:53:14.300Z","avatar_url":"https://github.com/victor-wiki.png","language":"C#","readme":"# CodeParser\nParse code using antlr.\n\n* The lexer and parser classes in **CodeParser** are generated by [Antlr grammar file](https://github.com/antlr/grammars-v4).\n* The **CodeParser.Test** demonstrates how to parse source code file to extract class and interface with their properties and methods. \n* The **CodeParser.Viewer** is a visual tool to analyse the parser rules.\n\n## Example\n\n*Python*\n* source code\n~~~\n#!/usr/bin/python3\n \nclass HelloWorld():   \n    owner = \"\"\n    target = \"\"\n    def sayHello(self, word):\n        print(word)\n\nx = HelloWorld() \n\nx.sayHello(\"Hello\")\n~~~\n\n* parser test output\n~~~\nClass:HelloWorld\n{\nField:owner\nField:target\nMethod:sayHello\n}\n~~~\n## Viewer\n![CodePaser Viewer](https://github.com/victor-wiki/StaticResources/blob/master/StaticResources/images/projs/CodeParser/Viewer.png?raw=true\u0026rid=1)\n\n![CodePaser Viewer](https://github.com/victor-wiki/StaticResources/blob/master/StaticResources/images/projs/CodeParser/Viewer2.png?raw=true\u0026rid=1)\n\n## Use Case\nThe library [SqlAnalyser.Core](https://github.com/victor-wiki/DatabaseManager/tree/master/DatabaseConverter/SqlAnalyser.Core) of [DatabaseManager](https://github.com/victor-wiki/DatabaseManager) project uses the TSqlParser, MySqlParser, PlSqlParser and PostgreSqlParser to parse and translate view, function, procedure and table trigger between SqlServer, MySql, Oracle and Postgres.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictor-wiki%2Fcodeparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictor-wiki%2Fcodeparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictor-wiki%2Fcodeparser/lists"}