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.5.tar.gz (44.9 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.5-py3-none-any.whl (79.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gofra-0.0.5.tar.gz
  • Upload date:
  • Size: 44.9 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.5.tar.gz
Algorithm Hash digest
SHA256 e367c25037840d30c34a8592b64bc97f31d6085e86c5dbf002c365c19a9e2cdd
MD5 aa2ef16dc18b7a06eacf51afbf664a6d
BLAKE2b-256 1ba702362af42bc30abe5cba4e214522caa3689da7949adc19d68f8e9bfc0309

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gofra-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 79.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b88e1a3fea195836d77e0ec1a74e5f05940b343ffa05a7b24934433b7dd35be
MD5 d431f85025854aafdb54dbf146720ddd
BLAKE2b-256 c3fe102d10c5943362d8c596f182dbbd1d22bd52fb4eceb9ad678a4edc40dd5f

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