# tree-sitter-cpp

> C++ grammar for tree-sitter

Latest version **0.23.4** (published 2024-11-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.23.4 |
| Published | 2024-11-11 |
| First published | 2017-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 40.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 453 |
| Author | Max Brunsfeld |
| Maintainers | amaanq, ahlinc, maxbrunsfeld, tclem, daviwil, rewinfrey, atom-team, patrickthomson |
| Keywords | incremental, parsing, tree-sitter, c++ |

## Links

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

## Dependencies (3)

- [tree-sitter-c](https://npm.io/package/tree-sitter-c.md) ^0.23.1
- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.2.1
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.8.2

## Recent versions

- 0.23.4 (latest) — 2024-11-11
- 0.23.3 — 2024-11-11
- 0.23.2 — 2024-11-10
- 0.23.1 — 2024-09-23
- 0.23.0 — 2024-09-03
- 0.22.3 — 2024-07-20
- 0.22.2 — 2024-06-04
- 0.22.1 — 2024-05-25
- 0.22.0 — 2024-04-15
- 0.21.0 — 2024-04-04
- 0.20.5 — 2024-02-18
- 0.20.4 — 2024-02-09
- 0.20.3 — 2023-08-13
- 0.20.2 — 2023-07-27
- 0.20.1 — 2023-07-18
- … 41 more at https://npm.io/package/tree-sitter-cpp/versions

## README

# tree-sitter-cpp

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-cpp/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-cpp)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-cpp)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-cpp)

C++ grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).

## References

- [Hyperlinked C++ BNF Grammar](http://www.nongnu.org/hcb/)
- [EBNF Syntax: C++](http://www.externsoft.ch/download/cpp-iso.html)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-cpp/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-cpp?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-cpp?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-cpp?logo=pypi&logoColor=ffd242

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