{"id":15008108,"url":"https://github.com/ehwan/lua_rust","last_synced_at":"2025-10-30T12:31:24.131Z","repository":{"id":255791268,"uuid":"851948071","full_name":"ehwan/lua_rust","owner":"ehwan","description":"lua syntax parser \u0026 interpreter in Rust","archived":false,"fork":false,"pushed_at":"2024-10-26T15:44:54.000Z","size":397,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T01:00:01.167Z","etag":null,"topics":["compiler","glr-parsing","lalr1","lua","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehwan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2024-09-04T00:46:42.000Z","updated_at":"2025-01-05T06:32:12.000Z","dependencies_parsed_at":"2024-09-07T05:30:28.908Z","dependency_job_id":"3b3d1d0f-1846-45ac-8e71-8b6cb895c755","html_url":"https://github.com/ehwan/lua_rust","commit_stats":null,"previous_names":["ehwan/lua_rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehwan%2Flua_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehwan%2Flua_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehwan%2Flua_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehwan%2Flua_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehwan","download_url":"https://codeload.github.com/ehwan/lua_rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238968295,"owners_count":19560586,"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":["compiler","glr-parsing","lalr1","lua","rust"],"created_at":"2024-09-24T19:15:09.606Z","updated_at":"2025-10-30T12:31:24.125Z","avatar_url":"https://github.com/ehwan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua_rust\n[![crates.io](https://img.shields.io/crates/v/lua_ir.svg)](https://crates.io/crates/lua_ir)\n[![docs.rs](https://docs.rs/lua_ir/badge.svg)](https://docs.rs/lua_ir)\n\nlua syntax parser \u0026 runtime interpreter in Rust\n\n - LALR(1), GLR parser with [RustyLR](https://github.com/ehwan/RustyLR)\n - syntax referenced from [lua 5.4 reference manual](https://www.lua.org/manual/5.4/manual.html)\n - ***Greatly in progress***\n    - grammar fully implemented\n    - std library barely implemented\n\n## Cargo Features\n - `32bit`: use 32bit integer and float for `lua numeric` type\n\n## How to use\n\n### As REPL interpreter\nclone this repository and simply run\n```\n$ cargo run \u003csource_file.lua\u003e\n```\nor\n```\n$ cargo run\n```\nwill start lua REPL. Note that this executable is not `cargo publish`ed.\n\n### As Library\nadd [`lua_ir`](https://crates.io/crates/lua_ir) crate to your `Cargo.toml`\n```toml\n[dependencies]\nlua_ir = \"...\"\n```\n\n```rust\nlet mut env = lua_ir::LuaEnv::new();\n\nenv.eval_chunk( b\"var_hello = 'Hello'\" )?;\nenv.eval_chunk( b\"var_world = 'World'\" )?;\nenv.eval_chunk( b\"print( var_hello .. ', ' .. var_world .. '!' )\" )?;\n// Hello, World!\n\nlet hello_value = env.get_global( \"var_hello\" )?;\nlet world_value = env.get_global( \"var_world\" )?;\nenv.set_global( \"var_hello\", 10.into() )?;\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehwan%2Flua_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehwan%2Flua_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehwan%2Flua_rust/lists"}