Skip to content

raghav198/Terse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terse

Interpreter for the esoteric "Terse" programming

Using Terse

The Terse interpreter comes in two different versions: open source and closed source. Both versions are free. To begin writing Terse programs, follow these steps:

  1. Choose which interpreter you want to use

    The open source interpreter allows you to modify the language and contribute features, but it requires Python2.7 in order to run. It is slightly slower than the closed source version. It can be used on any platform (Windows, Linux, and MacOS)

    The closed source interpreter does not allow for any modifications, and comes in the form of a Windows .exe executable file. Although it runs faster than the open source, there are currently no versions for any OS other than Windows.

  2. Download the relevant files for the interpreter that you chose and unzip them into a convenient directory.

  3. To use the open source interpreter, run python terse.py at the command prompt. To use the closed source interpreter, simply run the terse.exe executable. The program will prompt you for the filename if none is specified, and it will then execute the code contained in the file. For example, to run my_first_script.trs with the open source interpreter:

    python terse.py
    Filename? .trs
    Hello, world!

You can also specify the filename as a command-line parameter to avoid this extra step. For example, the previous two steps could have been performed like this:

    python terse.py my_first_script.trs
    Hello, world!

Writing Terse

OK, you know how to run Terse source files. But what about writing them? You can see some sample programs and language references in the /tutorial directory of your Terse installation,

About

Interpreter for the esoteric "Terse" programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages