Skip to content

C++ to JSON example#1

Open
adam-3bian wants to merge 1 commit intoCHERIoT-Platform:mainfrom
adam-3bian:main
Open

C++ to JSON example#1
adam-3bian wants to merge 1 commit intoCHERIoT-Platform:mainfrom
adam-3bian:main

Conversation

@adam-3bian
Copy link
Copy Markdown
Collaborator

This pull request adds a small Rust command line tool, cpp-syntax-json, which parses a C++ source file using tree sitter and prints its full concrete syntax tree as formatted JSON. The implementation is intentionally simple and beginner friendly, demonstrating basic CLI argument parsing with clap, recursive tree traversal, and JSON serialization with serde. It serves as a minimal, readable example of building a parsing tool in Rust and provides a foundation for future syntax analysis or tooling work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant