Skip to content

aprimr/tinypanda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

104 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyPanda logo TinyPanda

tinypanda mascot

tinypanda is released under the MIT license. tinypanda docs Latest Release

A minimalist, small, interpreted programming language written entirely in Go. Designed to run natively as a lightweight CLI tool and seamlessly in the browser via WebAssembly.

Features

  • Fast execution — leverages Go's runtime to execute interpreted scripts efficiently.
  • Lightweight & self-contained — distributed as a single compiled binary for the CLI. No heavy dependencies or virtual machines required..
  • No complex setup — no environment configs to fight with. Download the executable or run it online to start coding instantly.
  • Simple & fun syntax — a readable syntax with keywords like bamboo, iff/otherwise, and functions like echo/echoln.

CLI Commands

  • tinypanda — Run the interactive TinyPanda REPL.
  • tinypanda run <file.tp> — Execute a script natively on your system.
  • tinypanda --lexer — Run the TinyPanda REPL in lexer mode.
  • tinypanda --parser — Run the TinyPanda REPL in parser mode.
  • tinypanda --help — Display usage instructions, options, and available flags.
  • tinypanda --version — Print the current version of the TinyPanda interpreter.

Quick Start

1. Try it in the browser

No installation required. Head over to the web-based playground powered by WebAssembly:

Launch the tinypanda Playground

2. Installation (CLI)

Download the latest binary for your OS from the Releases page or download latest binary.

3. First program

Create a file named main.tp:

bamboo name = "TinyPanda";

echoln(name + " is fun!!!");

bamboo sayhello = fn(x) {
    echoln("Hello ", x);
    return "This is cool!!";
};

bamboo msg = sayhello(name);
echoln(msg);

Run it via the CLI:

tinypanda run main.tp

Documentation

For the complete reference manual and language specification, see the tinypanda documentation.

License

Released under the MIT License.

About

A dynamically typed intrepreted programming language written in Go

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors