This guide will help you set up Pome and write your first program.
Before installing Pome, ensure you have:
- C++17 compatible compiler: GCC 7+, Clang 5+, or MSVC 2017+
- CMake: Version 3.10 or higher
- Git: For cloning the repository
Pome 0.2 provides a simplified installation script that builds the project and installs it to your local user directory (~/.pome and ~/.local/bin).
-
Clone the repository:
git clone https://github.com/Pomilon/Pome.git cd Pome -
Run the installer:
chmod +x install.sh ./install.sh
-
Verify installation:
Ensure
~/.local/binis in yourPATH, then run:pome --version
Simply run pome without arguments to enter the interactive shell:
pomeYou will see the Pome logo and system information. You can type Pome code directly:
pome> print("Hello from the VM!");
Hello from the VM!
Create a file named hello.pome:
strict pome; // Optional: Enable strict mode
print("Hello, World!");
Run it:
pome hello.pomeExpected output:
Hello, World!
- Read Language Fundamentals to learn basic syntax.
- Explore Control Flow for conditionals and loops.
- Check out the Architecture guide to learn about the Register VM and NaN-Boxing.
- Learn about Functions and OOP.
Back to: Documentation Home