{"id":13483122,"url":"https://github.com/tree-sitter-grammars/tree-sitter-commonlisp","last_synced_at":"2025-12-12T13:13:24.822Z","repository":{"id":45591970,"uuid":"354867279","full_name":"tree-sitter-grammars/tree-sitter-commonlisp","owner":"tree-sitter-grammars","description":"Common Lisp grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2025-03-16T15:49:28.000Z","size":7026,"stargazers_count":52,"open_issues_count":2,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-02T04:09:30.029Z","etag":null,"topics":["common-lisp","parser","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tree-sitter-grammars.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-04-05T14:45:51.000Z","updated_at":"2025-03-16T15:49:31.000Z","dependencies_parsed_at":"2024-04-27T16:46:07.963Z","dependency_job_id":null,"html_url":"https://github.com/tree-sitter-grammars/tree-sitter-commonlisp","commit_stats":{"total_commits":77,"total_committers":1,"mean_commits":77.0,"dds":0.0,"last_synced_commit":"c7e814975ab0d0d04333d1f32391c41180c58919"},"previous_names":["tree-sitter-grammars/tree-sitter-commonlisp","thehamsta/tree-sitter-commonlisp"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter-grammars%2Ftree-sitter-commonlisp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter-grammars%2Ftree-sitter-commonlisp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter-grammars%2Ftree-sitter-commonlisp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tree-sitter-grammars%2Ftree-sitter-commonlisp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tree-sitter-grammars","download_url":"https://codeload.github.com/tree-sitter-grammars/tree-sitter-commonlisp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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":["common-lisp","parser","tree-sitter"],"created_at":"2024-07-31T17:01:08.437Z","updated_at":"2025-12-12T13:13:24.792Z","avatar_url":"https://github.com/tree-sitter-grammars.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Tree-sitter grammars"],"sub_categories":[],"readme":"# tree-sitter-commonlisp\n\n[![CI][ci]](https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/actions/workflows/ci.yml)\n[![discord][discord]](https://discord.gg/w7nTvsVJhm)\n[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)\n[![npm][npm]](https://www.npmjs.com/package/tree-sitter-commonlisp)\n[![crates][crates]](https://crates.io/crates/tree-sitter-commonlisp)\n[![pypi][pypi]](https://pypi.org/project/tree-sitter-commonlisp)\n\nWIP. Goal is to have a better syntax highlighting for Neovim\nand some semantic refactoring https://github.com/nvim-treesitter/nvim-treesitter-refactor/.\n\nAll praise goes to https://github.com/sogaiu/tree-sitter-clojure which is extended by this grammar.\n\nTODOs:\n\n- support number literals that are different from clojure (e.g. `.9`)\n\nMacros with special respresentation in syntax tree (when written with lowercase letters):\n\n- defun and friends (e.g. defmethod)\n- loop macro\n\nThis grammar is used in https://github.com/Wilfred/difftastic to generate syntax-ware diffs for Common Lisp.\n\n## Usage\n\n- C/C++\n   - compilation run `make` (optional `make install`)\n   - Follow the [Guide on using tree-sitter parsers](https://tree-sitter.github.io/tree-sitter/using-parsers/1-getting-started.html#getting-started)\n   - set `tree_sitter_commonlisp()` as language on your Tree-Sitter parser from [`tree_sitter_commonlisp.h`](https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/blob/4d2a2247bb0ec117193ef33e3ce546a6781c5bf5/bindings/c/tree-sitter-commonlisp.h#L10-L10)\n    ```c\n    ts_parser_set_language(parser, tree_sitter_commonlisp());\n     ```\n\n- Python (`pip install tree-sitter-commonlisp tree-sitter`)\n  https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/blob/4d2a2247bb0ec117193ef33e3ce546a6781c5bf5/bindings/python/tests/test_import.py#L15-L23\n- Rust `cargo add tree-sitter tree-sitter-grammars`\n  https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/blob/4d2a2247bb0ec117193ef33e3ce546a6781c5bf5/bindings/rust/lib.rs#L47-L50\n- Swift\n  https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/blob/4d2a2247bb0ec117193ef33e3ce546a6781c5bf5/bindings/swift/TreeSitterCommonlispTests/TreeSitterCommonlispTests.swift#L3-L13\n- Go\n  https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/blob/4d2a2247bb0ec117193ef33e3ce546a6781c5bf5/bindings/go/binding_test.go#L1-L15\n\n[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter-grammars/tree-sitter-commonlisp/ci.yml?logo=github\u0026label=CI\n[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord\u0026label=discord\n[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix\u0026label=matrix\n[npm]: https://img.shields.io/npm/v/tree-sitter-commonlisp?logo=npm\n[crates]: https://img.shields.io/crates/v/tree-sitter-commonlisp?logo=rust\n[pypi]: https://img.shields.io/pypi/v/tree-sitter-commonlisp?logo=pypi\u0026logoColor=ffd242\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftree-sitter-grammars%2Ftree-sitter-commonlisp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftree-sitter-grammars%2Ftree-sitter-commonlisp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftree-sitter-grammars%2Ftree-sitter-commonlisp/lists"}