Skip to content

Start

Installing FuckCode

FuckCode is the FuckLang compiler written in Python

Choose installation method:

Tip

Packaged version only supports amd64 architecture

Quote

Portable version includes w64devkit to provide compilation functionality

Download

Visit the Releases page to find and download fuckcode-portable-x64.zip

Installation

Unzip the package and add the extracted directory to your PATH environment variable

Info

This requires you to configure the GCC compiler yourself; other compilers (MSVC, etc.) are being adapted

Download

Visit the Releases page to find and download fuckcode.exe

Installation

Place this file in a directory included in your PATH (you might try C:\Windows? but it's better to have a dedicated directory)

Info

This requires you to configure the GCC compiler yourself; other compilers (MSVC, etc.) are being adapted

First, you need Python 3.8+ (recommended to be one version below the latest Python Release) and its pip. Here we assume it's invoked via pip3; if yours differs, please adjust accordingly.

Download and Install

Execute:

pip3 install -U fuckcode

Installation Complete

Hello, world!

Familiarize yourself with FuckLang by writing a program that outputs Hello, world!.

Create a new folder and create a file named test.fl inside it with the following content:

test.fl
#include <iostream>
using namespace std

int main():
    cout << "Hello, world!" << endl
    return 0

After saving, run the following command in the current directory to compile:

> fuckcode compiler test.fl -o test.exe
正在编译...
已编译到 test.exe
Next, execute:
> ./test.exe
Hello, world!

> fuckcode compiler test.fl -o test.out
正在编译...
已编译到 test.out
Next, execute:
> ./test.out
Hello, world!

If there are no errors, it confirms your installation was successful!