Skip to content

Falldot/Paw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Paw Programming Language

...

Code Example

import io;

let main = {
  io.println "Hello, world!";
}
import io; 

// concat strings
let hello message = io.println "Hello, " ++ message;

let main = {
  hello "world!"
}
import io;

type Option t : Some t | None

let map (o: Option `a) (f: `a -> `b): Option `b = match o {
  Some v = Some f v,
  None = None
};

let main = {
  // type: Option int
  let data = Some 4;
  // Lambda function
  map (\ v = io.println v) data; // print "4"
}

License

Paw is MIT licensed.

About

The Paw programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 100.0%