@wealthometer/ometer
v0.1.0
Published
The Ometer programming language - a dynamic, bytecode-compiled web language
Maintainers
Readme
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.jsonInstallation
- Clone the repository:
git clone https://github.com/Wealthometer/Ometer.git
cd ometer- Install dependencies:
npm install- Build the project:
npm run buildUsage
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 exampletest.om- Test programs
Development
Build
npm run buildRun Tests
npm testDevelopment Mode
npm run devLanguage 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
