{"id":26891001,"url":"https://github.com/bmyjacks/lex4oat","last_synced_at":"2025-10-11T13:02:12.514Z","repository":{"id":282867715,"uuid":"946332694","full_name":"bmyjacks/lex4oat","owner":"bmyjacks","description":"Rust-based lexer for the Oat programming language","archived":false,"fork":false,"pushed_at":"2025-03-17T10:40:51.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T11:37:27.957Z","etag":null,"topics":["lexer","oat","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/bmyjacks.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":"2025-03-11T01:17:40.000Z","updated_at":"2025-03-17T10:40:55.000Z","dependencies_parsed_at":"2025-03-17T21:31:21.512Z","dependency_job_id":null,"html_url":"https://github.com/bmyjacks/lex4oat","commit_stats":null,"previous_names":["bmyjacks/lex4oat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmyjacks%2Flex4oat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmyjacks%2Flex4oat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmyjacks%2Flex4oat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmyjacks%2Flex4oat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmyjacks","download_url":"https://codeload.github.com/bmyjacks/lex4oat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246547364,"owners_count":20794970,"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":["lexer","oat","rust"],"created_at":"2025-03-31T22:06:40.031Z","updated_at":"2025-10-11T13:02:07.440Z","avatar_url":"https://github.com/bmyjacks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lex4oat\n\nlex4oat is a Rust-based lexer for the Oat programming language. It features two lexing approaches:\n\n- **Library Lexer:** Uses [`lrlex`](src/liblex4oat.rs) and [`lrpar`](src/liblex4oat.rs) to tokenize the source.\n- **Handcrafted Lexer:** Builds an NFA and converts it to a DFA (see [`src/lex4oat.rs`](src/lex4oat.rs), [`src/nfa.rs`](src/nfa.rs), and [`src/dfa.rs`](src/dfa.rs)) to perform tokenization.\n\n## Features\n\n- Tokenizes Oat source files (e.g. [`a.oat`](a.oat))\n- Demonstrates lexer construction using state machines (NFA \u0026 DFA)\n- Provides both library-based and hand-made lexing techniques\n- Uses [`clap`](Cargo.toml) for command-line argument parsing and [`env_logger`](Cargo.toml) for logging\n\n## Getting Started\n\n### Build\n\n```shell\ncargo build\n```\n\n### Run\n\n```shell\ncargo run -- -f a.oat\n```\n\n### Docker\n```shell\ndocker buildx build . -t lex4oat:1\n\ndocker run -it --rm lex4oat:1 test/[].oat\n```\n\n### Testing \u0026 CI\n\nThe project includes a GitHub Actions workflow that builds and tests the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmyjacks%2Flex4oat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmyjacks%2Flex4oat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmyjacks%2Flex4oat/lists"}