The Fifth Language Reference provides comprehensive documentation of the language’s syntax, type system, and semantics.

This section is under construction. For now, the best way to learn Fifth is through the tutorials and the Learn Fifth in Y Minutes guide.

Topics (Coming Soon)

  • Lexical Structure — Comments, identifiers, keywords, literals
  • Type System — Primitive types, classes, generics, type constraints
  • Expressions — Arithmetic, comparison, logical, bitwise operators
  • Statements — Variable declarations, control flow, loops, exception handling
  • Functions — Declaration, parameter constraints, destructuring, overloading
  • Classes — Definition, inheritance, methods, properties
  • Knowledge Graph Types — graph, triple, store, query primitives
  • Module System — use declarations and module imports
  • Generics — Type parameters, constraints, inference

Contributing

If you’d like to help expand this reference, check out the Get Involved page for ways to contribute.