Skip to content
@HF-Foundation

HF Foundation

Building a fully portable, high performance ecosystem for the best programming language ever invented.

HolyF_ck

A compiled language based on brainf_ck.

All of HolyF_ck's parsing, tokenizing, AST generating, IR generating, optimizing and compilation code is fully no_std compatible, which makes it possible to run anywhere, even on bare metal.

HF currently compiles to static, native executables, like ELF binaries and PE executables, and can link to any library that implements the HF calling convention.

Examples

Simple Math

this is a comment

:my_function{     this is a function declaration
  ++++[-]         this is normal brainfuck code
}
@my_function;     this is an HF function call

++++----><>       you can put HF code anywhere

"Hello World"

this is a comment

set up the memory for use with ascii
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>

this dot is a stack push operation
which is followed by the function call is a call to an external library function
in this case a putchar function written in rust

.$hf_printchar;

we now modify the memory and print over and over to creat the Hello World string

>---
.$hf_printchar;
+++++++
.$hf_printchar;
.$hf_printchar;
+++
.$hf_printchar;
>>
.$hf_printchar;
<-
.$hf_printchar;
<.
$hf_printchar;
+++
.$hf_printchar;
------
.$hf_printchar;
--------
.$hf_printchar;
>>+
.$hf_printchar;
>++
.$hf_printchar;

now we flush to add a newline

$hf_printflush;

Pinned Loading

  1. HF-CODEGEN HF-CODEGEN Public

    IR and Compiler

    Rust

  2. HF-PARSER-RUST HF-PARSER-RUST Public

    Parser, tokenizer and AST generator for HF

    Rust

  3. HF-SPEC HF-SPEC Public

    Technical Specification and User Guides

Repositories

Showing 7 of 7 repositories
  • .github Public
    HF-Foundation/.github’s past year of commit activity
    0 0 0 0 Updated Nov 24, 2024
  • HF-PARSER-RUST Public

    Parser, tokenizer and AST generator for HF

    HF-Foundation/HF-PARSER-RUST’s past year of commit activity
    Rust 0 0 0 0 Updated Nov 24, 2024
  • HF-CLI Public

    Platform-specific Compiler CLI

    HF-Foundation/HF-CLI’s past year of commit activity
    Rust 0 0 0 0 Updated Nov 24, 2024
  • HF-SPEC Public

    Technical Specification and User Guides

    HF-Foundation/HF-SPEC’s past year of commit activity
    0 0 0 0 Updated Nov 24, 2024
  • HF-LIBHF Public

    Common standard library

    HF-Foundation/HF-LIBHF’s past year of commit activity
    Rust 0 0 0 0 Updated Nov 24, 2024
  • HF-PLAYGROUND Public

    A playground for testing HF related functionality

    HF-Foundation/HF-PLAYGROUND’s past year of commit activity
    Rust 0 0 0 0 Updated Nov 24, 2024
  • HF-CODEGEN Public

    IR and Compiler

    HF-Foundation/HF-CODEGEN’s past year of commit activity
    Rust 0 0 0 0 Updated Nov 24, 2024

Top languages

Loading…

Most used topics

Loading…