qbefmt

command
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: BSD-3-Clause, MIT Imports: 10 Imported by: 0

README

qbefmt

Command qbefmt formats QBE programs

Installation
$ go get -u modernc.org/qbe/qbefmt
Documentation

godoc.org/modernc.org/qbefmt

QBE language overview

QBE language reference

Documentation

Overview

Command qbefmt formats QBE programs.

Without an explicit path, it processes the standard input. Given a file, it operates on that file; given a directory, it operates on all .qbe files in that directory, recursively. (Files starting with a period are ignored.) By default, qbefmt prints the reformatted sources to standard output.

Installation

To install/update qbefmt invoke:

$ go get [-u] modernc.org/qbe/qbefmt

Online documentation

See https://godoc.org/modernc.org/qbe/qbefmt.

Usage

To format QBE source code invoke

$ qbefmt [flags] [path ...]

Flags

The flags are:

-w
	Do not print reformatted sources to standard output.
	If a file's formatting is different from qbefmt's, overwrite it
	with qbefmt's version. If an error occurred during overwriting,
	an attempt is made to restore the original file.

Jump to

Keyboard shortcuts

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