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.4.tar.gz (44.5 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.4-py3-none-any.whl (73.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gofra-0.0.4.tar.gz
  • Upload date:
  • Size: 44.5 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.4.tar.gz
Algorithm Hash digest
SHA256 73be0f3259b3863a184e774ef4f3904551bfef10b5b9a11394ddd0411d2a1fad
MD5 fb7ddc664ff5a29fd2ec7d26de9b7c7e
BLAKE2b-256 86185c6055bbe1f091b2070be28bf76244e9a480bcef1d58b02e7ed739f0137f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gofra-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 73.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d7b9e55e7f01c31ae5f873773cc7ebd9712d854ccdc177485853049c7a9cbef
MD5 5d392fbac84af63345bdd894a6d74b93
BLAKE2b-256 af45df17e62169ca2656506275487ce8e77c6d99df283b59d828495305b56c3b

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