{"id":22202877,"url":"https://github.com/logsem/cerise-interpreter","last_synced_at":"2026-03-04T18:03:56.020Z","repository":{"id":149899325,"uuid":"614431883","full_name":"logsem/cerise-interpreter","owner":"logsem","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-27T12:15:13.000Z","size":640,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-25T07:56:23.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logsem.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2023-03-15T15:14:22.000Z","updated_at":"2025-02-19T14:39:50.000Z","dependencies_parsed_at":"2024-01-19T23:31:37.007Z","dependency_job_id":"c4f8a49a-20c4-4187-ac0e-63f6fb391d84","html_url":"https://github.com/logsem/cerise-interpreter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/logsem/cerise-interpreter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fcerise-interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fcerise-interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fcerise-interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fcerise-interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logsem","download_url":"https://codeload.github.com/logsem/cerise-interpreter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logsem%2Fcerise-interpreter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30088344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-12-02T16:38:38.841Z","updated_at":"2026-03-04T18:03:56.001Z","avatar_url":"https://github.com/logsem.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cerise interpreter\nThis repository contains an interpreter of [Cerise](https://github.com/logsem/cerise), a model of a capability machine.\n\n## Build the interpreter\n\nDependencies: opam\n\n```\ngit clone https://github.com/logsem/cerise-interpreter.git \ncd cerise-interpreter\nopam switch create -y --repositories=default . ocaml-base-compiler.4.14.0\neval $(opam env --set-switch)\nmake\n```\n\nFinally, the command `make install` creates a symbolic link to the interpreter in this repository.\n\n## Usage\nExecutable: `./interpreter \u003cfile\u003e`\nAssembly examples in `./tests/test_files` (for the syntax)\n\nThe default version of the interpreter uses a version of Cerise with seals, uninitialized and directed capabilities. \nFor a version of Cerise without those features, use `./interpreter --version vanilla`.\n\nExample:\n\n```\n./interpreter -I --version vanilla --regfile ./tests/test_files/vanilla/pos/cap_machine_lecture_exercise.reg ./tests/test_files/vanilla/pos/cap_machine_lecture_exercise.s\n```\n\nFor more information about the options, `./interpreter --help`.\n\n## Interactive interpreter\nFor an interactive version of the interpreter: `./interpreter -I \u003cfile\u003e`\n\n| Binding                 | Effect                           |\n|-------------------------|----------------------------------|\n| `ESC` or `q`            | exit                             |\n| `SPACE`                 | next step                        |\n| `n`                     | next 10 steps                    |\n| `BACKSPACE`             | cancel the last step(s)          |\n| `Arrow Up`              | navigate up memory (1 address)   |\n| `Arrow Down`            | navigate down memory (1 address) |\n| `Arrow Left`            | navigate up memory  (1 page)     |\n| `Arrow Right`           | navigate down memory  (1 page)   |\n| `Arrow Left` + `SHIFT`  | navigate up memory  (10 pages)   |\n| `Arrow Right` + `SHIFT` | navigate down memory  (10 pages) |\n| `TAB`                   | follow the cursor of PC          |\n| `TAB` + `SHIFT`         | follow the cursor of STK         |\n\n\nThe `Arrow` keybindings can be combined with `CTLR` for navigating in the stack.\nIt is possible to scroll for navigating through the memory and the stack (depending on the position of cursor of the mouse). Combine mouse scroll + `CTLR` for navigating faster.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogsem%2Fcerise-interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogsem%2Fcerise-interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogsem%2Fcerise-interpreter/lists"}