Skip to content

0xdeadbad/yal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yal

YAL (YET ANOTHER LANGUAGE)

Syntax at the moment

fn main() : void {
  let variable: int = (4 * 2) + 5;
  variable = 4;
  variable = 5 * 2 * ( 5 + 3 );

  let test = 5;

  if ((x > 5) || (x < 2)) {
    let y = (5 + 1) - 2;
  } else {
    let h = NULL;
  }

  while (7 < x) {
    --x;
  }

  for (let x = 10; x < 10; ++x) {
    let str = "hello";
    let a = "test";
  }
  // comment
  /* comment */
}

fn test(a: int, b: uint, c: char) : uint {
  print("a b c", -1, --1, x + 5);
  return b;
}

fn TEST2() : int {
  if(true) {
    0
  } else {
    1
  }

  101
}

// fn TEST03() : int {
//   return if (false) { 10 } else { 20 };
// }

definetype SomeType = int;

About

YAL (YET ANOTHER LANGUAGE)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published