Skip to content
WealthometerPublic

About

probably a programming language

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

Ometer

A programming language compiler and virtual machine built with TypeScript.

Overview

Ometer is a custom programming language with a complete compiler toolchain including a lexer, parser, compiler, and virtual machine. It's designed to be extensible and easy to understand.

Project Structure

ometer/
├── src/
│   ├── lexer.ts         # Tokenization
│   ├── parser.ts        # Abstract Syntax Tree (AST) generation
│   ├── compiler.ts      # Code compilation
│   ├── vm.ts            # Virtual machine execution
│   ├── ast.ts           # AST type definitions
│   └── cli.ts           # Command-line interface
├── examples/            # Sample .om programs
└── package.json

Installation

  1. Clone the repository:
git clone https://github.com/Wealthometer/Ometer.git
cd ometer
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Usage

Run Ometer programs from the command line:

npm run start -- <file.om>

Features

  • Lexer: Tokenizes source code into meaningful units
  • Parser: Generates an Abstract Syntax Tree (AST)
  • Compiler: Compiles AST to bytecode
  • Virtual Machine: Executes compiled bytecode
  • CLI: Easy-to-use command-line interface

Examples

See the examples/ directory for sample Ometer programs:

  • hello.om - Basic hello world example
  • test.om - Test programs

Development

Build

npm run build

Run Tests

npm test

Development Mode

npm run dev

Language Syntax

[Add language syntax documentation here]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Wealthometer

About

probably a programming language

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages