curl -sL https://raw.githubusercontent.com/ekolang/eko/main/install.sh | bash
print hello world ``helloworld.eko``
generate main() {
write("Hello World!\n");
}
print hello world with escapes and add to string to themself ``helloworlde.eko``
generate main() {
// s0 is a escape for space
// you can remove return if you want normal exit-code.
write("Hello" + "\s0" + "World\n");
return 0;
}
get input from user and check if it equal to a value ``checkinput.eko``
generate char -v:content[] = getInput().chomp
generate main() {
if (strcmp("ekolang", -v:content)):
write("Hello ekolang!\n");
end;
}
create a function (give arguments is not support for now) ``func.eko``
generate Printer() { write("Hello"); }
generate main() { Printer(); }
create a loop to print from zero to 12 ``loop.eko``
More example in (examples/) if you want learn Eko fully, you can go to Here.generate int -v:count = 0generate print() { -v:count = -v:count++ write(-v:count + "\n"); test(); }
generate test() { if (-v:count > 11): write("Job is Done"); end; else: print(); }
generate main() { test(); }
To compile, you need to have the following prerequisites:
DMD - Dub - bin - handy-httpd - marschiert (runtime) - dgfx - arsd-offical:simpledisplay
Dub dependencies are automatically downloaded during compilation and do not need to be installed from the beginning.
DMD Download Page
(dub will install auto with DMD)
after download and install dmd in your system, clone repository with git:
git clone https://github.com/ekolang/eko
after that, open eko folder with cd eko
and go to runtime
You have to first compile runtime library, them put it in a global-library folder then linux and linker can found it. for example, you can put it in /usr/local/lib.
after putting library in /usr/local/lib go back and in src, run dub.
Also, you can change dub.json to build eko as release not debug. (lower-binery size.)
now, try it with ./eko --version and enjoy.
159 commits
D
88.8%
C#
7.6%
C
1.4%
Python
1.2%
curl -sL https://raw.githubusercontent.com/ekolang/eko/main/install.sh | bash
print hello world ``helloworld.eko``
generate main() {
write("Hello World!\n");
}
print hello world with escapes and add to string to themself ``helloworlde.eko``
generate main() {
// s0 is a escape for space
// you can remove return if you want normal exit-code.
write("Hello" + "\s0" + "World\n");
return 0;
}
get input from user and check if it equal to a value ``checkinput.eko``
generate char -v:content[] = getInput().chomp
generate main() {
if (strcmp("ekolang", -v:content)):
write("Hello ekolang!\n");
end;
}
create a function (give arguments is not support for now) ``func.eko``
generate Printer() { write("Hello"); }
generate main() { Printer(); }
create a loop to print from zero to 12 ``loop.eko``
More example in (examples/) if you want learn Eko fully, you can go to Here.generate int -v:count = 0generate print() { -v:count = -v:count++ write(-v:count + "\n"); test(); }
generate test() { if (-v:count > 11): write("Job is Done"); end; else: print(); }
generate main() { test(); }
To compile, you need to have the following prerequisites:
DMD - Dub - bin - handy-httpd - marschiert (runtime) - dgfx - arsd-offical:simpledisplay
Dub dependencies are automatically downloaded during compilation and do not need to be installed from the beginning.
DMD Download Page
(dub will install auto with DMD)
after download and install dmd in your system, clone repository with git:
git clone https://github.com/ekolang/eko
after that, open eko folder with cd eko
and go to runtime
You have to first compile runtime library, them put it in a global-library folder then linux and linker can found it. for example, you can put it in /usr/local/lib.
after putting library in /usr/local/lib go back and in src, run dub.
Also, you can change dub.json to build eko as release not debug. (lower-binery size.)
now, try it with ./eko --version and enjoy.
159 commits
D
88.8%
C#
7.6%
C
1.4%
Python
1.2%