bsharp

command module
v0.0.0-...-67b6ef9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 18 Imported by: 0

README

B#

Welcome to the B# programming language! Check out the docs to learn how to code in B#, and keep on reading to learn how to run it on your system!

Installation

To install or update B#, run

go install github.com/b-Development-Team/bsharp@latest

Usage

To run a file or multiple files, do

bsharp run file.bsp <file2.bsp> <file3.bsp>

To time how long it takes to run a B# program, use the --time or -t flag.

bsharp run file.bsp -t

To compile a file, do

bsharp build file.bsp <file2.bsp> <file3.bsp> -o file

This will produce a compiled executable.

The C source code that is generated can be viewed using

bsharp build file.bsp <file2.bsp> <file3.bsp> -o file.c

To time how long it takes to compile a B# program, use the --time or -t flag.

bsharp build file.bsp -o file -t

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
backends
bsp
bot
db
old
ssa
ssa/constrm
Package constrm applies constant folding optimizations
Package constrm applies constant folding optimizations
ssa/memrm
Package memrm turns variable instructions into PHI nodes, algorithm based on https://pp.info.uni-karlsruhe.de/uploads/publikationen/braun13cc.pdf
Package memrm turns variable instructions into PHI nodes, algorithm based on https://pp.info.uni-karlsruhe.de/uploads/publikationen/braun13cc.pdf
ssa/phirm
Package phirm replaces phi nodes with variable defines
Package phirm replaces phi nodes with variable defines

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL