Skip to content

kumavale/Adelie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Adelie Programming Language

Windows Linux license

Adelie is a .Net-compatible statically typed language that aims to combine the benefits of Rust and C#.

Goals

  • A language that takes advantage of Rust and C#
  • GUI application development using designer

Getting started

Please see Docs

Sample

FizzBuzz

fn main() {
    let mut i: i32 = 1;

    while i <= 100 {
        if i % 15 == 0 {
            println!("FizzBuzz");
        } else if i % 3 == 0 {
            println!("Fizz");
        } else if i % 5 == 0 {
            println!("Buzz");
        } else {
            println!(i);
        }
        i += 1;
    }
}

MessageBox

#[link(name="System.Windows.Forms.dll", publickeytoken="B7 7A 5C 56 19 34 E0 89")]
extern {
    mod System {
        mod Windows {
            mod Forms {
                enum DialogResult {}
                struct MessageBox {}
                impl MessageBox {
                    fn Show(text: string) -> DialogResult {}
                }
            }
        }
    }
}
fn main() {
    System::Windows::Forms::MessageBox::Show("hello!");
}

LICENSE

MIT