{"id":27400853,"url":"https://github.com/butanium/projet-interp-lua","last_synced_at":"2025-10-08T19:33:29.982Z","repository":{"id":173322578,"uuid":"630850264","full_name":"Butanium/projet-interp-lua","owner":"Butanium","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-07T10:08:19.000Z","size":719,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T03:53:40.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/Butanium.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,"zenodo":null}},"created_at":"2023-04-21T09:43:53.000Z","updated_at":"2023-06-07T10:08:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb329c6f-6a7d-46d1-af85-e17d252648c5","html_url":"https://github.com/Butanium/projet-interp-lua","commit_stats":null,"previous_names":["butanium/projet-interp-lua"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Butanium/projet-interp-lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2Fprojet-interp-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2Fprojet-interp-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2Fprojet-interp-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2Fprojet-interp-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Butanium","download_url":"https://codeload.github.com/Butanium/projet-interp-lua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Butanium%2Fprojet-interp-lua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000703,"owners_count":26082805,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-04-14T03:43:32.695Z","updated_at":"2025-10-08T19:33:29.977Z","avatar_url":"https://github.com/Butanium.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Dependencies\n\nIn order to build the project, we need a few opam packages.\nUsing `opam`, run:\n\n```\nopam install dune menhir ppx_deriving ocaml-lsp-server ocamlformat-rpc\n```\n\nOn the Rust side, a recent installation of cargo and rustc is needed.\n\n## Usage\n\nBuilding the project (both OCaml and Rust):\n\n```\n    make\n```\n\nRunning the tests (this uses all the .lua files in the `../lua/` directory as test files):\n\n```\n    make test\n```\n\nTo run the OCaml interpreter on a specific file `prog.lua`, move to the `ocaml` directory and type:\n\n```\n   dune exec --display=quiet interp/run.exe -- prog.lua\n```\n\nAlternatively, if one wants to use the CPS variant of the OCaml\ninterpreter (supporting coroutines), the she can use the command:\n\n```\n   dune exec --display=quiet interp-cps/run.exe -- prog.lua\n```\n\nTo run the Rust interpreter on a specific file `prog.lua`, move to the `rust` directory and type:\n\n```\n   cargo run --release -- prog.lua\n```\nOne can remove the `--release` option in order to disable optimizations.\n\nTo show the syntax tree corresponding to a mini-Lua program `prog.lua` after parsing by the OCaml parser (the AST in Rust should be equivalent):\n\n```\n    dune exec --display=quiet showast/showast.exe -- prog.lua\n```\n\nThe *lua reference interpreter* source is in the `lua` directory. It can be built by typing `make refinterp`, and run using:\n\n```\n    lua/mini_lua.sh prog.lua\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutanium%2Fprojet-interp-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbutanium%2Fprojet-interp-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutanium%2Fprojet-interp-lua/lists"}