@willbooster/tree-sitter-cpp 13.0.0 → 13.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,6 +15,29 @@ to its authors and contributors. This is not an official release of that project
15
15
  This fork fixes parsing bugs and raises conformance with the ISO C++ standard
16
16
  ([working draft](https://eel.is/c++draft/)).
17
17
 
18
+ ## Language coverage
19
+
20
+ The parser uses one grammar for syntax from C++98 onward, including syntax from the linked working draft. It has no
21
+ compiler-style `-std` selection and does not guarantee complete conformance to any edition. The corpus provides
22
+ examples of the forms it accepts:
23
+
24
+ | Syntax | Examples |
25
+ | --------------------------------------------------------- | ------------------------------------------------- |
26
+ | C++98/03 declarations and classes | [Declarations](test/corpus/declarations.txt) |
27
+ | C++11 lambdas and C++14 generic lambdas | [Expressions](test/corpus/expressions.txt) |
28
+ | C++17 structured bindings | [Declarations](test/corpus/declarations.txt) |
29
+ | C++20 concepts, requires clauses and requires expressions | [Concepts](test/corpus/concepts.txt) |
30
+ | C++20 modules, partitions, imports and exports | [Modules](test/corpus/modules.txt) |
31
+ | C++23 consteval if statements | [Statements](test/corpus/statements.txt) |
32
+ | Working-draft function contracts | [Contracts](test/corpus/contracts.txt) |
33
+ | Working-draft reflection, splice syntax and annotations | [Reflection](test/corpus/reflection.txt) |
34
+ | Microsoft declaration specifiers and calling conventions | [Microsoft extensions](test/corpus/microsoft.txt) |
35
+
36
+ The tree describes the written source. Preprocessing branches remain in the tree; macro expansion, condition
37
+ evaluation and header inclusion are left to a preprocessor. Name lookup, type checking and other semantic validation
38
+ are left to a compiler. In ambiguous declaration and expression syntax, the chosen tree can therefore differ from
39
+ the compiler's interpretation.
40
+
18
41
  ## Usage
19
42
 
20
43
  The npm package ships `tree-sitter-cpp.wasm` for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-cpp",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
4
4
  "description": "C++ grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "13.0.0",
27
+ "version": "13.0.2",
28
28
  "license": "MIT",
29
29
  "description": "C++ grammar for tree-sitter",
30
30
  "authors": [