{"id":20098630,"url":"https://github.com/pfnet/rflex","last_synced_at":"2025-04-05T22:09:15.367Z","repository":{"id":54659211,"uuid":"180130957","full_name":"pfnet/rflex","owner":"pfnet","description":"Fast lexer code generator for Rust","archived":false,"fork":false,"pushed_at":"2024-08-06T08:13:06.000Z","size":148,"stargazers_count":136,"open_issues_count":1,"forks_count":8,"subscribers_count":101,"default_branch":"master","last_synced_at":"2024-09-12T11:37:23.123Z","etag":null,"topics":["lexer","lexer-generator","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pfnet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2019-04-08T11:03:51.000Z","updated_at":"2024-09-01T07:06:44.000Z","dependencies_parsed_at":"2024-07-14T15:37:20.789Z","dependency_job_id":"7ef0e484-8a96-454d-aa21-8758e02de50c","html_url":"https://github.com/pfnet/rflex","commit_stats":{"total_commits":47,"total_committers":4,"mean_commits":11.75,"dds":"0.44680851063829785","last_synced_commit":"010b7d85abebd69550d798a4800f7ef8c6713b06"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Frflex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Frflex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Frflex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Frflex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfnet","download_url":"https://codeload.github.com/pfnet/rflex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406091,"owners_count":20933803,"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","lexer-generator","rust"],"created_at":"2024-11-13T17:06:05.844Z","updated_at":"2025-04-05T22:09:15.341Z","avatar_url":"https://github.com/pfnet.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rflex\n\nrflex is a fast lexical analyzer generator for Rust.\n\n[![GitHub license](https://img.shields.io/github/license/pfnet/rflex.svg)](https://github.com/pfnet/rflex)\n[![Crates Status](https://img.shields.io/crates/v/rflex.svg)](https://crates.io/crates/rflex)\n\n```\ncargo install rflex\n```\n\nor\n\nWrite your Cargo.toml and build.rs\n\n```toml\n[package]\n# ...\nbuild = \"build.rs\"\n\n[build-dependencies]\n# ...\nfailure = \"0.1.5\"\nrflex = \"0.9.0\"\n```\n\n```rust\nextern crate rflex;\nuse std::env;\nuse std::path::Path;\n\nfn main() {\n    let out_dir = env::var(\"OUT_DIR\").unwrap();\n    let dest = Path::new(\u0026out_dir).join(\"target.rs\");\n    let path = Path::new(\"src\").join(\"target.l\");\n    if let Err(e) = rflex::process(path, Some(dest)) {\n        for cause in failure::Fail::iter_chain(\u0026e) {\n            eprintln!(\"{}: {}\", cause.name().unwrap_or(\"Error\"), cause);\n        }\n        std::process::exit(1);\n    }\n}\n```\n\nSee [tutorial.md](docs/tutorial.md).\n\n## Unsupported regular-expression\n\n* `e{num}` ... repeat e `num` times\n* `e{min,max}` ... repeat e `min` to `max` times\n* `e/s` ... lookahead `s` before accept `e`\n\n# License\n\n* rflex is released under MIT License.\n\n# Copyright\n\n* Copyright (c) 2018 Preferred Networks, Inc.\n* Partial original codes were written in Java under 3-clause BSD license:\n  * Copyright (c) Gerwin Klein, Steve Rowe, Regis Decamp.  All rights reserved.\n\n## Dependent libraries\n\nThese libraries are used only rflex lexer generator, generated code doesn't depend on them.\n\n* [fixedbitset](https://github.com/bluss/fixedbitset) released under MIT License\n  * Copyright (c) 2015-2017\n* [liquid](https://github.com/cobalt-org/liquid-rust) released under MIT License\n  * Copyright (c) 2014 cobalt-org\n* [failure](https://github.com/rust-lang-nursery/failure) released under MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet%2Frflex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfnet%2Frflex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet%2Frflex/lists"}