# tree-sitter-c

> C grammar for tree-sitter

Latest version **0.24.1** (published 2025-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install tree-sitter-c
pnpm add tree-sitter-c
yarn add tree-sitter-c
bun add tree-sitter-c
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.24.1 |
| Published | 2025-05-24 |
| First published | 2015-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 395 |
| Author | Max Brunsfeld |
| Maintainers | ahlinc, maxbrunsfeld, amaanq, tclem, daviwil, rewinfrey, joshvera, atom-team, patrickthomson |
| Keywords | incremental, parsing, tree-sitter, c |

## Links

- npm: https://www.npmjs.com/package/tree-sitter-c
- Repository: https://github.com/tree-sitter/tree-sitter-c
- Homepage: https://github.com/tree-sitter/tree-sitter-c#readme
- Issues: https://github.com/tree-sitter/tree-sitter-c/issues
- npm.io page: https://npm.io/package/tree-sitter-c

## Dependencies (2)

- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.3.1
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.8.4

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.24.1 (latest) — 2025-05-24
- 0.24.0 — 2025-05-24
- 0.23.6 — 2025-05-24
- 0.23.5 — 2025-02-08
- 0.23.4 — 2024-12-15
- 0.23.3 — 2024-12-15
- 0.23.2 — 2024-11-19
- 0.23.1 — 2024-09-23
- 0.23.0 — 2024-09-03
- 0.21.4 — 2024-05-31
- 0.21.3 — 2024-05-25
- 0.21.0 — 2024-03-13
- 0.20.8 — 2024-02-13
- 0.20.7 — 2024-01-22
- 0.20.6 — 2023-08-13
- … 61 more at https://npm.io/package/tree-sitter-c/versions

## README

# tree-sitter-c

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-c/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-c)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-c)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-c)

C grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
Adapted from [this C99 grammar](http://slps.github.io/zoo/c/iso-9899-tc3.html).

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-c/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-c?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-c?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-c?logo=pypi&logoColor=ffd242

---
_Source: https://npm.io/package/tree-sitter-c · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
