{"id":13759579,"url":"https://github.com/sogaiu/tree-sitter-mal","last_synced_at":"2026-04-25T22:34:33.038Z","repository":{"id":118762083,"uuid":"312831216","full_name":"sogaiu/tree-sitter-mal","owner":"sogaiu","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-22T02:39:32.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-03T11:33:39.629Z","etag":null,"topics":["mal","tree-sitter"],"latest_commit_sha":null,"homepage":"","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/sogaiu.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}},"created_at":"2020-11-14T14:18:03.000Z","updated_at":"2023-02-07T08:53:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7ee169e-a513-4e68-95a9-cdb2eb9dfed6","html_url":"https://github.com/sogaiu/tree-sitter-mal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sogaiu/tree-sitter-mal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sogaiu%2Ftree-sitter-mal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sogaiu%2Ftree-sitter-mal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sogaiu%2Ftree-sitter-mal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sogaiu%2Ftree-sitter-mal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sogaiu","download_url":"https://codeload.github.com/sogaiu/tree-sitter-mal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sogaiu%2Ftree-sitter-mal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32279658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","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":["mal","tree-sitter"],"created_at":"2024-08-03T13:00:55.652Z","updated_at":"2026-04-25T22:34:33.023Z","avatar_url":"https://github.com/sogaiu.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# tree-sitter-mal\n\n## Status\n\nSubject to change, grammar still evolving.\n\n## Prerequisites\n\n* [emsdk](https://emscripten.org/docs/getting_started/downloads.html#installation-instructions) -- emscripten via homebrew seems to work for macos\n* node \u003e= 12 (nvm recommended) -- recently tested 12.9.1, 12,16,1\n\n## Fine Print\n\n* The instructions below assume emsdk has been installed, but `emcc` (tool that can be used to compile to wasm) is not necessarily on one's `PATH`.  If an appropriate `emcc` is on one's `PATH` (e.g. emscripten installed via homebrew), the emsdk steps (e.g. `source ~/src/emsdk/emsdk_env.sh`) below may be ignored.\n\n* `node-gyp` (tool for compiling native addon modules for Node.js) may fail on machines upgraded to macos Catalina. [This document](https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md) may help cope with such a situation.\n\n## Initial Setup\n\nSuppose typical development sources are stored under `~/src`.\n\n```\n# clone repository\ncd ~/src\ngit clone https://github.com/sogaiu/tree-sitter-mal\ncd tree-sitter-mal\n\n# create `node_modules` and populate with dependencies\nnpm install\n\n# create `src` and populate with tree-sitter .c goodness\nnpx tree-sitter generate\n\n# create `build` and populate with\nnpx node-gyp configure\n\n# create `build/Release` and build `tree_sitter_mal_binding.node`\nnpx node-gyp rebuild\n```\n\n## Grammar Development\n\nHack on grammar and interactively test.\n\n```\n# prepare emsdk (specifically emcc) for building .wasm\nsource ~/src/emsdk/emsdk_env.sh\n\n# edit grammar.js using some editor\n\n# rebuild tree-sitter stuff and invoke web-ui for interactive testing\nnpx tree-sitter generate \u0026\u0026 \\\nnpx node-gyp rebuild \u0026\u0026 \\\nnpx tree-sitter build-wasm \u0026\u0026 \\\nnpx tree-sitter web-ui\n\n# in appropriate browser window, paste code in left pane\n\n# examine results in right pane -- can even click on nodes\n\n# find errors and loop back to edit step above...\n```\n\nParse individual files.\n\n```\n# create and populate sample code file for parsing named `sample.clj`\n\n# parse sample file\nnpx tree-sitter parse sample.clj\n\n# examine output similar to web-ui, but less convenient\n```\n\n## Measure Performance\n\n```\n# single measurement\nnpx tree-sitter parse --time sample.clj\n\n# mutliple measurements with `multitime`\nmultitime -n10 -s1 npx tree-sitter parse --time --quiet sample.clj\n```\n\n## Build .wasm\n\nAssuming emsdk is installed appropriately under `~/src/emsdk`.\n\n```\n# prepare emsdk (specifically emcc) for use\nsource ~/src/emsdk/emsdk_env.sh\n\n# create `tree-sitter-mal.wasm`\nnpx tree-sitter build-wasm\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsogaiu%2Ftree-sitter-mal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsogaiu%2Ftree-sitter-mal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsogaiu%2Ftree-sitter-mal/lists"}