{"id":16735871,"url":"https://github.com/ranaaditya/lex-yacc-programs","last_synced_at":"2026-01-02T16:49:14.351Z","repository":{"id":46308710,"uuid":"306844840","full_name":"ranaaditya/Lex-Yacc-Programs","owner":"ranaaditya","description":"first step towards crafting compilers","archived":false,"fork":false,"pushed_at":"2021-10-31T17:25:09.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T10:12:55.228Z","etag":null,"topics":["bison","bison-yacc","compiler","compiler-design","flex","hacktoberfest","hacktoberfest2021","lex","lexical-analyzer","lexical-parser","yaac"],"latest_commit_sha":null,"homepage":"","language":"Lex","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/ranaaditya.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-10-24T09:02:48.000Z","updated_at":"2023-03-04T08:51:36.000Z","dependencies_parsed_at":"2022-07-31T14:19:23.223Z","dependency_job_id":null,"html_url":"https://github.com/ranaaditya/Lex-Yacc-Programs","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/ranaaditya%2FLex-Yacc-Programs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaaditya%2FLex-Yacc-Programs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaaditya%2FLex-Yacc-Programs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaaditya%2FLex-Yacc-Programs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranaaditya","download_url":"https://codeload.github.com/ranaaditya/Lex-Yacc-Programs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790999,"owners_count":20348385,"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":["bison","bison-yacc","compiler","compiler-design","flex","hacktoberfest","hacktoberfest2021","lex","lexical-analyzer","lexical-parser","yaac"],"created_at":"2024-10-13T00:07:38.329Z","updated_at":"2026-01-02T16:49:14.319Z","avatar_url":"https://github.com/ranaaditya.png","language":"Lex","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lex-Yacc-Programs\n\n## Installation\n```\nsudo apt-get install flex\nsudo apt-get install byacc\nsudo apt-get install bison\n```\n\n## Compile \u0026 Run\n\n### `Lex` Programs\n```bash\nlex \u003clex filepath\u003e \u0026\u0026 gcc -lfl lex.yy.c \u0026\u0026 ./a.out \u003c input.txt | sed '/^$/d'\n```\nWe use `sed` to remove empty lines.\n\n### `Lex + Yacc` Programs\n```bash\nflex \u003clex filepath\u003e\nbison -dy \u003cyacc filepath\u003e\ngcc -lfl lex.yy.cc y.tab.c\n./a.out \u003c input.txt | sed '/^$/d'\n```\n\nOR (in short)\n\n```bash\nflex \u003clex filepath\u003e \u0026\u0026 bison -dy \u003cyacc filepath\u003e \u0026\u0026 gcc -lfl lex.yy.cc y.tab.cc \u0026\u0026 ./a.out \u003c input.txt | sed '/^$/d'\n```\n\nWe use `sed` to remove empty lines.\n\n## Contribution\nFeel free to raise issues and send PRs for new programms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franaaditya%2Flex-yacc-programs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franaaditya%2Flex-yacc-programs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franaaditya%2Flex-yacc-programs/lists"}