elikaski / BF-it

A C-like language to Brainfuck compiler, written in Python
MIT License
121 stars 11 forks source link

Add compile time string concatenation. #72

Open NeeEoo opened 3 years ago

NeeEoo commented 3 years ago
int main() {
    print("Hello" /*COMMENT*/ " World");
}

The string would be compiled as "Hello World"

int main() {
    print("1");
    print("2");
    print("3");
    print("4");
    print("5");

    // Could then be rewritten as

    print(
        "1"
        "2"
        "3"
        "4"
        "5"
    );
}