Installation

Get Tenet running on your machine in under 5 minutes.


Prerequisites

  • Java 11+ (OpenJDK or Oracle JDK)
  • Git (for cloning the repository)

Quick Install (Windows)

Download the latest release (tenet-1.0.0-windows.zip) from GitHub Releases, extract, and run:

# Run as Administrator for global install
powershell -ExecutionPolicy Bypass -File install.ps1

# Restart terminal, then:
tenet --version

Building from Source

# Clone the repository
git clone https://github.com/fawazishola/Tenet.git
cd Tenet

# Build (Windows)
.\build.bat

# Build (Linux/Mac)
./build.sh

3. Run the REPL

Windows:

tenet

macOS/Linux:

./tenet.sh

You should see:

Tenet v1.0.0
>>> 

4. Run a File

tenet examples/demo.tenet

Directory Structure

tenet/
├── src/                    # Source code
│   └── org/axiom/tenet/
│       ├── Tenet.java      # Entry point
│       ├── Scanner.java    # Lexer
│       ├── Parser.java     # Parser
│       └── ...
├── examples/               # Example .tenet files
│   ├── demo.tenet
│   ├── classic_games/
│   ├── behavioral/
│   └── ...
├── out/                    # Compiled classes
└── tenet.bat               # Windows launcher

Verify Installation

Create a file hello.tenet:

print "Hello, Game Theory!";

Run it:

.\tenet hello.tenet

Expected output:

Hello, Game Theory!

VS Code Extension

Tenet has a VS Code extension for syntax highlighting:

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Tenet" or install from tenet-vscode/ folder
  4. Open any .tenet file

Troubleshooting

"java: command not found"

Install Java:

  • Windows: Download from adoptium.net
  • macOS: brew install openjdk@11
  • Linux: sudo apt install openjdk-11-jdk

"cannot find symbol" during compilation

Make sure you're in the root tenet/ directory and running the exact compile command:

javac -d out src/org/axiom/tenet/*.java

Next Steps