Skip to content
/ terrac Public
forked from terralang/terrac

Unofficial terralang compiler

License

Notifications You must be signed in to change notification settings

tidemmo/terrac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terrac

The unofficial Terra compiler.

Usage

$ terrac --help

usage: terrac terrac [-h] [--] file.t

Unofficial Terra compiler

-o, --output           If specified, outputs the terra code to the given filename
-I, --include-dir=dir  Adds a search path for C header files (can be passed multiple times)
-L, --lib-dir=dir      Adds a search path for libraries (can be passed multiple times)
-l, --lib=name         Specifies a library to be linked against the resulting binary
-D, --depfile          If specified, emits a Ninja-compatible depfile with all included files during the build
-P, --depfile-path     If specified, all depfile paths are relativized to this path
-v                     Increase verbosity (default level 0, max level 3)
-g, --debug            Enable debugging information
-h, --help             Shows this help message

Building

You need CMake, zLib (libz), libcurses, and Terra.

Building with CMake should be straightforward, but if you're new:

$ mkdir build && cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
$ make

License

Terra is licensed under the MIT License

Terra is released under the MIT license.

Originally by Sir Toastie (@qix-) for the development of Tide.

About

Unofficial terralang compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.1%
  • CMake 4.9%