{"id":21221472,"url":"https://github.com/worksofliam/coolex","last_synced_at":"2025-07-04T19:36:43.953Z","repository":{"id":114429048,"uuid":"115878834","full_name":"worksofliam/Coolex","owner":"worksofliam","description":"Basic lexer attempt","archived":false,"fork":false,"pushed_at":"2020-08-22T13:24:48.000Z","size":41,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T01:14:18.875Z","etag":null,"topics":[],"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/worksofliam.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":"2017-12-31T18:12:09.000Z","updated_at":"2021-10-01T13:46:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"634fdf36-d745-496b-a763-76461d9eb23c","html_url":"https://github.com/worksofliam/Coolex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/worksofliam/Coolex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksofliam%2FCoolex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksofliam%2FCoolex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksofliam%2FCoolex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksofliam%2FCoolex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worksofliam","download_url":"https://codeload.github.com/worksofliam/Coolex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksofliam%2FCoolex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263607829,"owners_count":23487883,"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":[],"created_at":"2024-11-20T22:28:19.604Z","updated_at":"2025-07-04T19:36:43.931Z","avatar_url":"https://github.com/worksofliam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coolex\n\nCoolex will generate two C# classes for you to copy in to your project.\n\n## Usage\n\n1. Language definition (`test.txt`)\n\n```\nOPERATORS: \"+\", \"-\", \"/\", \"*\"\n\nNUMERIC_LITERAL: \"/[-0-9]+/\"\nPLUS: \"+\"\nMINUS: \"-\"\nDIVIDE: \"/\"\nMULTIPLY: \"*\"\n```\n\n2. Calling `coolex.exe`\n\n```\n.\\coolex test.txt\nNotice:: Generating enum Type:\n        : UNKNOWN\n        : OPERATOR\n        : STRING_LITERAL\n        : NUMERIC_LITERAL\n        : PLUS\n        : MINUS\n        : DIVIDE\n        : MULTIPLY\nNotice: Writing file: test.txt.cs\n```\n\n3. Copy class into `namespace` in C# project\n4. Invoke the generated class:\n\n```\n//ConsoleApp1 main\nCoolexLex lexer = new CoolexLex();\n\nlexer.Lex(\"1324 + 1 / 12 * 6 - 5 + 10\");\n\nforeach (var Token in lexer.TokenList)\n{\n    Console.WriteLine(Token.Type.ToString() + \" \" + Token.Value);\n}\n```\n\n```\n.\\ConsoleApp1.exe\nNUMERIC_LITERAL 1324\nPLUS +\nNUMERIC_LITERAL 1\nDIVIDE /\nNUMERIC_LITERAL 12\nMULTIPLY *\nNUMERIC_LITERAL 6\nMINUS -\nNUMERIC_LITERAL 5\nPLUS +\nNUMERIC_LITERAL 10\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworksofliam%2Fcoolex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworksofliam%2Fcoolex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworksofliam%2Fcoolex/lists"}