Skip to content
CAI
Software that uses CAICheck a score

DualBrain/bsharp

76.0

Strong · 14 November 2026

12.7k

lines of production code

VB.NET

primary language

6

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

B\# is a .NET-based system designed to recreate the classic GW-BASIC and QBasic experience on modern platforms. It provides a compiler that translates BASIC source code into multiple target formats, including MSIL, VB.NET, and JavaScript, alongside an interpreter with a syntax-highlighting REPL. The system includes core language features such as control flow, variable management, and file operations, supported by a comprehensive test suite and sample programs.

Features

BASIC compiler binding layer and statement model introduced

The BSharp BASIC compiler now includes a binding phase that constructs a bound abstract syntax tree (AST) and a comprehensive model of bound statements and expressions. This change introduces support for classic BASIC control flow, including GOTO and GOSUB/RETURN with numeric line-number targets, as well as IF/THEN/ELSE, FOR/NEXT, and DO WHILE/UNTIL loops. The binding logic also adds support for variable assignment, binary arithmetic and logical operators with type inference, and a range of BASIC statements such as PRINT, INPUT, DEF FN, MID$, and file/directory management commands (CHDIR, CLS, CLEAR, MKDIR, KILL, etc.).

bsharp · high confidence

Compiler now supports multi-target platform output via -p flag

The bsc compiler has been updated to support generating output for multiple target platforms. Users can now specify the desired output type using the -p command-line argument, with support for Microsoft Intermediate Language (MSIL/IL/CIL), Microsoft Visual Basic, and JavaScript. The compiler automatically selects the appropriate file extension (.exe, .vb, or .html) based on the chosen platform if an output path is not explicitly provided.

bsc · high confidence

Introduction of syntax highlighting and full-screen editor in the REPL

The BSI interactive shell now features a full-screen editor mode and syntax highlighting for code entry. Users can toggle the full-screen editor (via the 'edit' command) to view and edit scripts with line/column indicators and insert/overwrite mode status. The REPL also highlights keywords, identifiers, numbers, strings, and comments with distinct colors during line-by-line rendering, improving readability when writing or reviewing BASIC code.

bsi · high confidence

New sample programs and multi-target output templates added

The samples directory now includes a collection of new BASIC programs demonstrating language features such as GOTO, GOSUB, INPUT, and arithmetic operations (e.g., acey.bas, gosub.bs, goto.bs, input.bs). Additionally, new files have been added to demonstrate the compiler's multi-target platform output capabilities, including a JavaScript console implementation (hello.html), a converted VB.NET module (hello.vb), and a basic HTML/JS runner template.

samples · high confidence

Behavioural changes

Project renamed to B\# with initial solution structure and documentation

The project has been renamed from 'b2x' to 'B\#' (bsharp.net) and restructured into a Visual Studio solution containing the main interpreter/compiler project (bsharp), a test suite (bsharp.tests), and supporting tools (bsc, bsi). The README has been updated to reflect the new name, the .NET Desktop build badge, and the project's goal of recreating the classic GW-BASIC/QBasic experience on modern .NET, including plans for an interpreter, compiler, and code converter.

(repo-wide) · high confidence

Test coverage

Added unit tests for B\#sharp lexer, parser, and code analysis utilities

Added a new test suite in the bsharp.tests project to verify the correctness of the language's syntax analysis components. This includes tests for the lexer (covering tokenization, separators, and identifier rules), the parser (validating binary and unary operator precedence), and utility classes like AnnotatedText and AssertingEnumerator used to support the test infrastructure.

bsharp.tests · high confidence

Dependencies

Project structure reorganized and upgraded to .NET 7.0

The project has been refactored and renamed to 'bsharp', with the solution split into distinct components: the core library (bsharp), the compiler (bsc), the interpreter (bsi), and the test suite (bsharp.tests). All projects now target .NET 7.0. The core library adds dependencies on Mono.Cecil and System.Collections.Immutable, while the compiler uses Mono.Options. The test suite is configured with xUnit, Microsoft.NET.Test.Sdk, and coverlet.collector.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 73 → 76 (+2.8)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 84 → 78 (-6.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 63 → 71 (+8.2)
  • Readiness 82 → 82 (+0.0)
  • Security 80 → 80 (+0.0)

Resolved (2)

  • End-of-life runtime: .NET net7.0 (bsi/bsi.vbproj)
  • IL efficiency: 17 authored method(s) exceed the IL budget (bsharp/CodeAnalysis/Binding/ConstantFolding.vb)

New (17)

  • Edited copy of a member (11 corresponding lines) (bsharp/CodeAnalysis/Syntax/Parser.vb)
  • Edited copy of a member (13 corresponding lines) (bsi/Repl.vb)
  • Edited copy of a member (17 corresponding lines) (bsi/Repl.vb)
  • Edited copy of a member (19 corresponding lines) (bsharp/CodeAnalysis/Emit/JsEmitter.vb)
  • Edited copy of a member (232 corresponding lines) (bsharp/CodeAnalysis/Binding/ConstantFolding.vb)
  • Edited copy of a member (27 corresponding lines) (bsi/Repl.vb)
  • Edited copy of a member (32 corresponding lines) (bsi/Repl.vb)
  • Edited copy of a member (35 corresponding lines) (bsharp/CodeAnalysis/Binding/Binder.vb)
  • Edited copy of a member (6 corresponding lines) (bsharp/CodeAnalysis/Binding/Binder.vb)
  • Edited copy of a member (6 corresponding lines) (bsharp/CodeAnalysis/Binding/BoundNodePrinter.vb)
  • Edited copy of a member (72 corresponding lines) (bsharp/CodeAnalysis/Emit/JsEmitter.vb)
  • Edited copy of a member (9 corresponding lines) (bsharp/CodeAnalysis/Binding/Binder.vb)
  • Edited copy of a member (9 corresponding lines) (bsi/Repl.vb)
  • End-of-life runtime: .NET net7.0 (bsc/bsc.vbproj)
  • End-of-life runtime: .NET net7.0 (bsharp.tests/bsharp.Tests.vbproj)
  • End-of-life runtime: .NET net7.0 (bsharp/bsharp.vbproj)
  • End-of-life runtime: .NET net7.0 (bsi/bsi.vbproj)

Architecture

  • Unchanged — 2 containers · 0 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

DualBrain/bsharp was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 77caa74c1eecb57922f4f195106400babfa001b4 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.