F* is an open source programming language created in 2014.
#125on PLDB | 10Years Old | 250Repos |
git clone https://github.com/FStarLang/FStar
F* (pronounced F star) is a functional programming language inspired by ML and aimed at program verification. Its type system includes dependent types, monadic effects, and refinement types. This allows expressing precise specifications for programs, including functional correctness and security properties. Read more on Wikipedia...
module Hello
let main = FStar.IO.print_string "Hello World\n"
abstract attributes noeq unopteq andbegin by default effect else end ensures exception exists false forall fun function if in include inline inline_for_extraction irreducible logic match module mutable new new_effect noextract of open opaque private range_of reifiable reify reflectable requires set_range_of sub_effect synth then total true try type unfold unfoldable val when with not
Feature | Supported | Example | Token |
---|---|---|---|
Binary Literals | ✓ | ||
Integers | ✓ | ||
Floats | ✓ | ||
Hexadecimals | ✓ | ||
Octals | ✓ | ||
Conditionals | ✓ | ||
Functions | ✓ | ||
Booleans | ✓ | true false | |
Print() Debugging | ✓ | FStar.IO.print_string |