Wellang
About
This is a project originally started by Tristan Wellman(read CONTRIBUTING.md for contribution info). This is a high level assembly language, you will have your low level assembly programming but with some features from high level languages. Wellang compiles directly to assembly(NASM), See below for compilation and simple documentation.
contact me at:
email: [email protected]
discord: __Oblivion__#3258
wellang discord server: https://discord.gg/K4ufunGxJv
Compile Wellang
git the wellang github repository
$ git clone https://github.com/wellang/well.git
move to the wellang directory in your terminal
$ cd well
compile wellang with make
$ make base
install wellang
$ make install
Example program: helloworld.well (in /example/)
var:main {
string~ text = 'hello world!'
length~ text_length, text
}
~func:main {
move~ 1, rax
move~ 1, rdi
move~ text, rsi
move~ text_length, rdx
return
move~ 60, rax
move~ 0, rdi
return
}
compile program
to compile your well program you can run wesm
in your terminal:
[test@test example]$ wesm helloworld.well -o hello.o hello
done compiling program
[test@test example]$ ./hello
hello world!
Vim syntax highlighting
to install wellang syntax highlighting for vim all you have to do is
make vim
if it says you don't have ~/.vim/syntax/
or ~/.vim/ftdetect/
then you can do
cd {path/to/.vim}
mkdir syntax && mkdir ftdetect
New Features!
5/14/22: Added Function handling. You can now make use of more than just the main function in wellang!
5/10/22: Added support for vim syntax highlighting with wellang