A modern C# toolchain with deterministic parsing, opinionated formatting, and deep static analysis for robust code understanding.
Parser
Built on robust C# grammar with deterministic parsing principles, the BSharp parser handles complex language constructs while maintaining performance across large codebases. It serves as the foundation for all downstream tooling, ensuring consistent and accurate syntax trees.
Try it yourself: paste C# code below and visualize its abstract syntax tree in real-time.
Formatter
Achieve consistent code style with our opinionated formatter that produces predictable diffs and supports configurable profiles. Designed for team collaboration, it enforces readability standards while respecting your project's unique conventions.
Experience clean, consistent formatting by editing C# code and seeing the transformed output instantly.
Analysis Pipeline
Unlock deep insights into your codebase with our modular static analysis pipeline. Capture precise control-flow graphs, dependency maps, and comprehensive metrics that enable advanced refactoring, security auditing, and performance optimization.
Explore your code's structure: analyze C# snippets and inspect detailed metrics, control flow, and dependencies.
Roadmap
Our journey to reimagine C# tooling. Building the foundation for modern C# development with deterministic parsing, deep analysis, and native compilation.
AST structures (up to C# version 12) with APIs for querying data
Complete abstract syntax tree representation with comprehensive query APIs for deep code analysis.
Analysis Pipeline
Modular static analysis with control-flow graphs, dependency mapping, and comprehensive metrics.
Opinionated Formatter
Consistent code formatting with predictable diffs and configurable style profiles.
Feature Parity with C# 14 Syntax
Complete support for the latest C# 14 language features and syntax constructs.
LSP
Language Server Protocol support for IDE integration with IntelliSense, go-to definition, and refactoring.
Roslyn Parser Compliance
Full compatibility with Microsoft's Roslyn parser for seamless migration and tooling integration.
BSharp Scripting Runtime
High-performance scripting runtime for executing C# scripts with rapid startup and low memory footprint.
BSharp Native Compiler
LLVM-based native compiler producing optimized executables with ahead-of-time compilation.
Install
Install the CLI with Cargo:
If not available on crates.io, install from Git: