Ever Programming Language.
See the code
curl -sL https://raw.githubusercontent.com/evrlang/ever/main/install.sh | bash
Make sure to read this before running the Windows version of Ever.
print hello world
def:write "Hello world\n"
print hello world and add strings to themself
def:write ("Hello World" + "\n")
get input from user and check if it equal to a value
gen string @name def:getInput "Whats your name? "
if (@name == "ever")
def:write (@BOLD + @GREEN + "Hello world" + "\n")
end
create a timer then it tick every 3500ms, in first tick we show a message
def:time 3500
delegate tick
def:write ("@RED" + "Hello" + @RESET)
end
To compile Ever, you first need gcc, make, dmd (D Compiler), and dub installed on your computer.
Note: Compilation may have linker problems on Windows. I tested it on Windows 7, and it did not work.
Download the source code from the releases and unzip it.
Then, go to the evrlib folder using cd and run:
make
After that, simply run make install on same folder to install library into /usr/local/lib so the linker can find it easily.
Now, go to the src folder inside the Ever source directory and run:
dub build
Tip: If you want to compile without debug symbols and reduce the binary size, use:
dub build --build=release
Ever Programming Language.
See the code
curl -sL https://raw.githubusercontent.com/evrlang/ever/main/install.sh | bash
Make sure to read this before running the Windows version of Ever.
print hello world
def:write "Hello world\n"
print hello world and add strings to themself
def:write ("Hello World" + "\n")
get input from user and check if it equal to a value
gen string @name def:getInput "Whats your name? "
if (@name == "ever")
def:write (@BOLD + @GREEN + "Hello world" + "\n")
end
create a timer then it tick every 3500ms, in first tick we show a message
def:time 3500
delegate tick
def:write ("@RED" + "Hello" + @RESET)
end
To compile Ever, you first need gcc, make, dmd (D Compiler), and dub installed on your computer.
Note: Compilation may have linker problems on Windows. I tested it on Windows 7, and it did not work.
Download the source code from the releases and unzip it.
Then, go to the evrlib folder using cd and run:
make
After that, simply run make install on same folder to install library into /usr/local/lib so the linker can find it easily.
Now, go to the src folder inside the Ever source directory and run:
dub build
Tip: If you want to compile without debug symbols and reduce the binary size, use:
dub build --build=release