Rhys Adams

Vintage computing, cyber security and other interesting stuff.

RhysLang

My compiled programming language

Features:

  • Functions
  • Variables
  • Structures/classes
  • A simple standard library for I/O, memory allocation
  • A preprocessor

Example program:

        
%include stdlib

sub main() : void {
    my file = File.open("test.txt", 2);
    
    my i = 10;
    while(i>0) {
        file.write("Hello world!\n");
        i = i-1;
    }

    file.close();
    
    puts('Done!\n');
    
    exit(0);
}
        
    

Running the program:

Running the program