code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(90 lines)

% TOMO(1) % Bruce Hill (bruce@bruce-hill.com) % June 11, 2024

NAME

tomo - The programming language of tomorrow.

SYNOPSIS

Run a program: : tomo program.tm [[--] args...]

Transpile tomo files to C files: : tomo -t file1.tm file2.tm...

Compile files to static object files: : tomo -c file1.tm file2.tm...

Compile files to a executables: : tomo -e file1.tm file2.tm...

Build a package: : tomo -p file1.tm file2.tm...

DESCRIPTION

Tomo is a programming language that is statically typed, compiled, small, and garbage-collected, with concise syntax and built-in support for high-performance, low-overhead datastructures. It compiles by first outputting C code, which is then compiled using a C compiler of your choice.

OPTIONS

--changelog : Print the compiler change log and exit.

--transpile, -t file1.tm file2.tm... : Transpile the given files to C.

--compile-exe, -e file1.tm file2.tm... : Compile the given files to executables.

--compile-obj, -c file1.tm file2.tm... : Compile the given files to static objects.

--help, -h : Print the usage and exit.

--package, -p folder1 folder2... : Compile the input folders to shared packages.

--install, -I : When using -e or -L, install the resulting executables or packages.

--show-codegen , -C : Set a program (e.g. cat or bat) to display the generated code

--force-rebuild, -f : Force rebuilding/recompiling.

--format file1.tm file2.tm... : Autoformat the given files and print them to standard output.

--format file1.tm file2.tm... : Autoformat the given files in-place and overwrite the original files.

--optimization level, -O level : Set the optimization level.

--prefix : Print the Tomo installation prefix and exit.

--quiet, -q : Run in quiet mode.

--run, -r : Run an installed tomo program from ~/.local/lib/tomo_vX.Y/.

--source-mapping=, -m= <yes|no> : Toggle whether source mapping should be enabled or disabled.

--uninstall, -u pkg1 pkg2... : Uninstall the given packages.

--verbose, -v : Print extra verbose output.

--version : Print the compiler version and exit.

1 % TOMO(1)
2 % Bruce Hill (*bruce@bruce-hill.com*)
3 % June 11, 2024
5 # NAME
7 tomo - The programming language of tomorrow.
9 # SYNOPSIS
11 Run a program:
12 : `tomo` *program.tm* \[\[`--`\] *args...*\]
14 Transpile tomo files to C files:
15 : `tomo` `-t` *file1.tm* *file2.tm*...
17 Compile files to static object files:
18 : `tomo` `-c` *file1.tm* *file2.tm*...
20 Compile files to a executables:
21 : `tomo` `-e` *file1.tm* *file2.tm*...
23 Build a package:
24 : `tomo` `-p` *file1.tm* *file2.tm*...
26 # DESCRIPTION
28 Tomo is a programming language that is statically typed, compiled, small, and
29 garbage-collected, with concise syntax and built-in support for
30 high-performance, low-overhead datastructures. It compiles by first outputting
31 C code, which is then compiled using a C compiler of your choice.
33 # OPTIONS
35 `--changelog`
36 : Print the compiler change log and exit.
38 `--transpile`, `-t` *file1.tm* *file2.tm*...
39 : Transpile the given files to C.
41 `--compile-exe`, `-e` *file1.tm* *file2.tm*...
42 : Compile the given files to executables.
44 `--compile-obj`, `-c` *file1.tm* *file2.tm*...
45 : Compile the given files to static objects.
47 `--help`, `-h`
48 : Print the usage and exit.
50 `--package`, `-p` *folder1* *folder2*...
51 : Compile the input folders to shared packages.
53 `--install`, `-I`
54 : When using `-e` or `-L`, install the resulting executables or packages.
56 `--show-codegen` *<program>*, `-C` *<program>*
57 : Set a program (e.g. `cat` or `bat`) to display the generated code
59 `--force-rebuild`, `-f`
60 : Force rebuilding/recompiling.
62 `--format` *file1.tm* *file2.tm*...
63 : Autoformat the given files and print them to standard output.
65 `--format` *file1.tm* *file2.tm*...
66 : Autoformat the given files in-place and overwrite the original files.
68 `--optimization` **level**, `-O` **level**
69 : Set the optimization level.
71 `--prefix`
72 : Print the Tomo installation prefix and exit.
74 `--quiet`, `-q`
75 : Run in quiet mode.
77 `--run`, `-r`
78 : Run an installed tomo program from `~/.local/lib/tomo_vX.Y/`.
80 `--source-mapping=`, `-m=` **<yes|no>**
81 : Toggle whether source mapping should be enabled or disabled.
83 `--uninstall`, `-u` *pkg1* *pkg2*...
84 : Uninstall the given packages.
86 `--verbose`, `-v`
87 : Print extra verbose output.
89 `--version`
90 : Print the compiler version and exit.