{"id":19590512,"url":"https://github.com/nssharmaofficial/lark-switch-parser","last_synced_at":"2026-02-03T06:01:55.148Z","repository":{"id":183693200,"uuid":"584116306","full_name":"nssharmaofficial/lark-switch-parser","owner":"nssharmaofficial","description":"Implementation of switch case in Lark ","archived":false,"fork":false,"pushed_at":"2024-09-05T18:27:24.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T04:42:43.774Z","etag":null,"topics":["lark-parser","parser","switch-case"],"latest_commit_sha":null,"homepage":"","language":"Python","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/nssharmaofficial.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":"2023-01-01T12:45:17.000Z","updated_at":"2024-09-05T18:27:27.000Z","dependencies_parsed_at":"2024-11-11T08:33:58.914Z","dependency_job_id":"ba92d17e-6d36-4e50-853a-fdf46fc38f17","html_url":"https://github.com/nssharmaofficial/lark-switch-parser","commit_stats":null,"previous_names":["natasabrisudova/switch_parser_lark","nssharmaofficial/switch_parser_lark","nssharmaofficial/lark-switch-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nssharmaofficial/lark-switch-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nssharmaofficial%2Flark-switch-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nssharmaofficial%2Flark-switch-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nssharmaofficial%2Flark-switch-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nssharmaofficial%2Flark-switch-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nssharmaofficial","download_url":"https://codeload.github.com/nssharmaofficial/lark-switch-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nssharmaofficial%2Flark-switch-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263041896,"owners_count":23404457,"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":["lark-parser","parser","switch-case"],"created_at":"2024-11-11T08:25:03.344Z","updated_at":"2026-02-03T06:01:50.111Z","avatar_url":"https://github.com/nssharmaofficial.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Switch parser using Lark\n\nThis project was an assignment for the NLP class at University of Siena.\n\n## Assignment \n\nUsing lark implement a parser for managing the **switch** statement in a simplified version.\n\n- the variable used in the switch is one integer variable in a predefined set of two variables `x`, `y`.\n- the values to `x`, `y` are assigned before the if statement (assume 0 if there is no assignment)\n- the switch instruction has the following syntax\n\n   ```lark\n   switch(var) {\n     case 0: z=cost0;\n             break;\n\n      ...\n     case N: z=costN;\n             break;\n\n     default: z=costD;\n             break;\n   }\n   ```\n\n- the instruction contains only the assignment of a constant value to the variable `z`\n- at the end print the value of the variable `z`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnssharmaofficial%2Flark-switch-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnssharmaofficial%2Flark-switch-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnssharmaofficial%2Flark-switch-parser/lists"}