Installation
Install the OCat CLI tools and get up and running in minutes
Quickstart
Write and run your first OCat program
Language Guide
Learn OCat syntax, variables, functions, and imports
CLI Reference
Full reference for the ocat and ocm command-line tools
What is OCat?
OCat (Orange Cat Language) is a programming language implemented in TypeScript, providing a clean syntax for declaring variables, defining functions, and organizing code across modules. It ships with two CLI tools:ocat— The compiler and runner. Execute.ocatsource files directly or launch an interactive REPL.ocm— The project manager. Scaffold new projects, manage configuration, and run projects from a central entry point.
Key features
Run files
Execute
.ocat source files with ocat run, with optional force mode for non-standard extensionsInteractive REPL
Explore the language interactively with
ocat inline — supports all language featuresProject scaffolding
Create App or Lib projects with
ocm initialize, generating the full project structure automaticallyModule imports
Import other
.ocat or .oc files with the import keyword to split code across filesTyped variables
Declare variables with explicit types:
number, string, and boolFunctions
Define reusable functions and call them anywhere in your program
Logging system
Built-in logging service with configurable log levels and interceptors, writing logs to
.ocat/logs.txtProject configuration
Per-project configuration via
.ocat/config.json, including the main entry file and project metadataLanguage overview
OCat programs are plain text files with a.ocat (or .oc) extension. A minimal program looks like this:
hello.ocat
func and called by name:
import:
Project structure
When you create a project withocm initialize, the following structure is generated:
.ocat/config.json file stores project metadata, the main entry point, and runtime configuration.