Skip to main content

A Stack-based compiled programming language

Project description

Gofra

A Stack-based compiled programming language

Project is made for FUN and educational purposes! Don`t expect anything cool from it and just try/contribute


Documentation and information is available here


Overview

Gofra is a concatenative (stack-based) programming language that compiles to native code. Programs are written using Reverse Polish notation, where operations follow their operands (e.g 2 + 2 is 2 2 +).

Quick start

Here's a simple "Hello, World!" example:

include "std.gof"

func void main
    FD_STD_OUT "Hello, World!\n" sc_write drop
end

Platform support

Gofra currently supports native compilation (no cross-compilation yet). You must compile on the same platform as your target:

  • x86_64 (Linux)
  • AArch64 macOS (Darwin)

Features

  • Low-level - Write unsafe, low-level code with direct memory access
  • Native Compilation - Generates optimized native assembly code
  • Type Safety - Validates stack usage and type correctness at compile time
  • C FFI - Seamless integration with C libraries (including libc)

Installation

For full installation steps, please visit Documentation page

Gofra is distributed as single Python-based toolchain. To install:

pip install gofra
gofra --help

More information and next steps

Please refer to actual Documentation!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gofra-0.0.3.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gofra-0.0.3-py3-none-any.whl (73.0 kB view details)

Uploaded Python 3

File details

Details for the file gofra-0.0.3.tar.gz.

File metadata

  • Download URL: gofra-0.0.3.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.7 Darwin/24.6.0

File hashes

Hashes for gofra-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1c78cfd0e8ed26f7f398373992d263f4eb73efb9f7e991581ae86104c276ae8d
MD5 e7466e28a5ab608147394f97e68ccc77
BLAKE2b-256 603f9f21c320bb04fc59e4a049c8802a6a7c7503c7ff25e93f7a74979aacc721

See more details on using hashes here.

File details

Details for the file gofra-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gofra-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 73.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.7 Darwin/24.6.0

File hashes

Hashes for gofra-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 712785dee4d66563f889ae17bd197651496bcf282b086e0b54443f432397f4ca
MD5 67bee07cb67af0b9b685f0ecc1e8a387
BLAKE2b-256 274f325c7d6882d5587fd74b4e4c38a19af72b7d9d911af8b6e195bbd3d7f999

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page