Skip to content

aidnem/collver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collver

Collver is an open source programming language focused on ease-of-implementation.

Collver is a compiled language, and it is stack-based.

A hello world program in collver looks like this:

include "std.collver" // Include the standard library, which defines the `puts` procedure

proc main // The main procedure, like int main() in c
  "Hello, world!\n" // Initialize a null-terminated string, and push its pointer to the stack
  puts // Take this pointer, and use it to print the string to stdout
end

Notice how there are no variables, and the data just lives on the stack.

Unlike other programming languages that focus on silly things like memory safety or ease-of-use, Collver is meant to be as simple to implement as possible.

The reasons for this are as follows:

  1. I'm clueless and have basically no idea how to write a compiler.
  2. If I make the implementation simpler, it will be easier to rewrite in itself.

Collver will (hopefully) eventually be self-hosted (written in itself), but for now the compiler is implemented in python.

About

It's all about my convenience

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published