/fran-c

A French programming language

Primary LanguageC

FRAN-C

What is it ?

FRAN-C ("FRAN-C Really Adresses Need for Camembert" or "FRAN-C Really Adds Nothing to C") is a French programming language aiming at being the crème de la crème for system programming while adding the French touch to your project.

FRAN-C is fully compatible with traditionnal C, so you can still use existing libraries without translating them.

How to use it ?

Just include baguette.h in your project and start coding the French way.

You can find all the keywords of the language in keywords.md.

Code example

Here are some examples of code snippet translated from traditionnal C to FRAN-C:

C

FRAN-C

#include <stdio.h>

int main(int argc, char const *argv[])
{
    printf("Bonjour monde !\n");

    return 0;
}
#include <stdio.h>
#include "baguette.h"

entier principale(entier argc, caractère immuable *argv[])
{
    imprimerf("Bonjour monde !\n");

    retourner 0;
}
for(int compteur = 0; compteur < 5; compteur++) {
    printf("Baguette !\n");
}
pour(entier compteur = 0; compteur < 5; compteur++) {
    imprimerf("Baguette !\n");
}
bool boolean1 = false;
bool boolean2 = true;
if(boolean1 && boolean2) {
    printf("foo");
} else if(boolean1) {
    printf("bar");
} else {
    printf("baz");
}
bivalent boolean1 = inexact;
bivalent boolean2 = exact;
pourvu_que(boolean1 && boolean2) {
    imprimerf("foo");
} autrement pourvu_que(boolean1) {
    imprimerf("bar");
} autrement {
    imprimerf("baz");
}

Excuse me what the fuck ?

This project is intended as a joke and was inspired by brouberol/marcel.

Contributing

Feel free to contribute and suggest new translations.