You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-50Lines changed: 50 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# A compiler front end for the C++ language
2
2
3
-
cxx-frontend is a work-in-progress compiler frontend for C++23
3
+
cxx-frontend is a work-in-progress compiler frontend for C++26 and C23
4
4
5
5
The compiler frontend is designed to be a powerful tool for developers, enabling them to parse, analyze, and modify C++ source code. This project aims to provide a robust foundation for building a complete C++ frontend, staying
6
6
up-to-date with the latest language features and standards.
@@ -17,53 +17,60 @@ For updates, improvements, and recent features in cxx-frontend, please consult t
17
17
18
18
-**Multi-Language Support**: In addition to C++, the library provides APIs for TypeScript and JavaScript.
19
19
20
-
-**C++-23 Support**: Latest language enhancements, syntax, and features (WIP).
20
+
-**C++-26 and C23 Support**: Latest language enhancements, syntax, and features (WIP).
21
21
22
-
## Syntax Checker and AST Browser Showcase
22
+
## Playground
23
23
24
-
Storybook and CodeMirror are used to demonstrate how to create a syntax checker and navigate the Abstract Syntax Tree (AST)
24
+
The playground uses the Monaco Editor to demonstrate how to create a syntax checker and navigate the Abstract Syntax Tree (AST).
25
25
26
26
https://robertoraggi.github.io/cplusplus/
27
27
28
-
## Installing from npm
28
+
## Native Build and CLI tools
29
29
30
-
To integrate the latest stable version of the C++ Compiler Frontend bindings into your project, you can install them from npm:
30
+
On Linux, macOS and Windows:
31
+
32
+
install the python packages required to run the unit tests (optional)
31
33
32
34
```sh
33
-
npm install cxx-frontend
35
+
uv sync &&source .venv/bin/activate
34
36
```
35
37
36
-
Once installed, you can use the bindings in your Node.js or web projects as needed.
38
+
configure the source code
37
39
38
-
## Getting Started Using Example Projects
40
+
```sh
41
+
cmake --preset default
42
+
```
39
43
40
-
These projects are pre-configured and serve as starting points for various [use cases](https://github.com/robertoraggi/cplusplus/tree/main/templates).
0 commit comments