Measures Concepts
GitHub icon

F*

F* - Programming language

< >

F* is an open source programming language created in 2014.

Source code:
git clone https://github.com/FStarLang/FStar
#233on PLDB 10Years Old 250Repos

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...


Example from hello-world:
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

Language features

Feature Supported Token Example
Binary Literals ✓
Integers ✓
Floats ✓
Hexadecimals ✓
Octals ✓
Conditionals ✓
Functions ✓
Booleans ✓ true false
Print() Debugging ✓ FStar.IO.print_string

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout