web2go

command module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: BSD-3-Clause Imports: 19 Imported by: 0

README

web2go

Comand web2go is an attempt to mechanically translate tex.web to Go. (Work in progress.)

This program is being developed and tested using a tex.web file annotated as

% Version 3.141592653 was similar but more extensive (January 2021)

and will probably crash on any other version or modification of it. It's a non-goal to handle anything else than this one file with this single version.

Installation

$ go install -u modernc.org/web2go

Documentation: godoc.org/modernc.org/web2go

Documentation

Overview

Command web2go is an attempt to mechanically translate tex.web to Go. (Work in progress.)

This program is being developed and tested using a tex.web file annotated as

% Version 3.141592653 was similar but more extensive (January 2021)

and will probably crash on any other version or modification of it. It's a non-goal, at this stage, to handle anything else than this one file of this single version.

Installation

To install:

$ go install modernc.org/web2go

Dependencies

An external programs must be available in $PATH.

TANGLE(1)

NAME
       tangle - translate WEB to Pascal

SYNOPSIS
       tangle [options] webfile[.web] [changefile[.ch]]

Tangle is used to convert a .web, like tex.web to a .p (Pascal) file. The binary is part of the Debian package 'texlive', for example.

Invocation

To run the command:

$ web2go [options] input-file

The input file

A .web file that will be processed by tangle to produce a .p file that will be the input of the transpiler.

Options

Flags that adjust program behavior

-o output-file

Set the Go output file name. Existing files will be overwritten without asking.

-p file-name

When processing a .web file, keep the resulting .p file in file-name. Existing files will be overwritten without asking.

-pkg pkg-name

When producing a library (see below) set the package name to pkg-name. Has no effect otherwise.

-lib

Produce a library instead of a command.

-type name

When producing a library with -lib, set the library type to name. (Default "tex".)

-e

Show all errors, if any.

References

Referenced to from elsewhere:

[0]: Kathleen Jensen, Niklaus Wirth: Pascal User Manual and Report, Fourth Edition.
	ISBN-13: 978-0-387-97649-5 e-ISBN: 978-1-4612-4450-9

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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