Hacker News new | ask | show | jobs
Show HN: Parlan – a new programming language for fun (github.com)
1 points by Santiago-Lopez 21 days ago
1 comments

Hi HN!

This is my new programming language, Parlan, with a simple philosophy:

- parlan is not trying to be the next "X-language killer". - parlan is not trying to be the next standard to write software. - parlan just exists, if you want to use it, great! if not, that totally cool too.

i'm currently searching feedback about my syntax and/or my implementation.

The compiler is currently written in Rust, and transpiles to C.

Thank you in advance!

This is a simple example program in Parlan:

  extern func printf(fmt: str, ...): int;
  
  func main(): int {
    var x = 45;
    var i = 0;
    while i < 10 {
      printf("x * i = %d\n", x * i);
      i = i + 1;
    }
    
    return 0;
  }