Skip to content

wellang/well

Repository files navigation

Wellang


wellang



Well discord server

NOTE

Wellang is in an extremely early state with pending syntax changes and the development of the compiler. MAKE SURE you keep wellang up to date in these early stages.

About

This is a project by Tristan Wellman. Wellang is a high level compiled assembly language; you will have your low level assembly programming but with some features from high level languages. Wellang compiles directly to NASM. See below for compilation and simple documentation.

NEED HELP?

Email: wellangcode@gmail.com

Wellang discord server: https://discord.gg/K4ufunGxJv

Compile Wellang

Linux

$ git clone https://github.com/wellang/well.git
$ cd well
$ make && make install-unix
or
$ make base install-unix

FreeBSD

$ git clone https://github.com/wellang/well.git
$ cd well
$ gmake base install-unix
or
$ gmake && gmake install-unix

MacOS

$ git clone https://github.com/wellang/well.git
$ cd well
$ make base install-osx
or
$ make && make install-osx

Windows

windows installation

ARM/RaspberryPi

$ sudo apt-get install libsqlite3-dev sqlite3
$ git clone https://github.com/wellang/well.git
$ cd well
$ make base-arm install-unix

Hello World program (using linux x86_x64 syscall table)

~include <std.well>
~var:main {
	string~ text = 'Hello World!'
}
~func:main {
	move~ 1, rax
	move~ 1, rdi
	move~ text, rsi
	move~ text.len, rdx
	syscall
	return~ 0
}

compile program

to compile your well program you can run wesm in your terminal:

 ╰─λ wesm helloworld.well -o helloworld
14:21:22 INFO  src/asm_interp.c:736: Compile time:: 0.011261s, 11.261000ms
 ╰─λ ./helloworld
Hello World!

Vim syntax highlighting

make vim

Credits

Contributors

Stargazers over time

Stargazers over time