Skip to content

Chkoupi-lang v0.1.0

Choose a tag to compare

@dzxpert dzxpert released this 23 Mar 21:46
· 32 commits to main since this release

Usage

# Run a .dz file directly
chkoupi.exe myfile.dz

# Print LLVM IR
chkoupi.exe myfile.dz --emit-ir

# Compile to object file
chkoupi.exe myfile.dz --emit-obj out.o

Example

Save this as BRI.dz:

dalla greet(n: tabi3i) -> fargh {
    idha (n > 0) {
        ektb("ana a chef!\n");
    } idha_mknch {
        ektb("wlh ma ana a chef\n");
    }
}

dir x : tabi3i = 0;
ektb("hatli 5obzi: ");
a9ra(x);
greet(x);

Then run:

chkoupi.exe BRI.dz

📖 Docs

See DOCS.md for the full language reference.