Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 1.58 KB

README.md

File metadata and controls

65 lines (51 loc) · 1.58 KB

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