Felix Tutorial
latest
Hello
Felix 101: The Basics
Comments
Identifiers
Variables
Logic Type Bool
Integers
Slices
Floating Point Numbers
Strings
Characters
Simple Control Flow
Loops
Arrays
Tuples
Procedures
Functions
Function Application
Pythagoras
Felix 102: More Detail
Felix 102a: Regular Expressions
Felix 102b: File I/O
Felix 103: Polymorphism
Felix 104: C bindings
Felix 105: Nominal Types
Felix 106: Uniqueness Typing
Felix 107: Polymorphic Variants
Felix 108: Row Polymorphism and Subtyping
Felix 109: Objects and Plugins
Felix 110: Coroutines
Felix 111: Generalised Algebraic Data types
Felix 112: Compact Linear Types
Felix 113: Serialisation
Felix 114: Kinds
Felix GUI
Felix Tutorial
Docs
»
Felix 101: The Basics
Edit on GitHub
Felix 101: The Basics
ΒΆ
The first module gives a brief overview of some basics.
Comments
C++ comments
Nested C comments
Identifiers
C like identifiers
Tex Identifiers
Variables
Variables with type and initialiser
Variables without type annotation
Variables without initialiser
Simple Assignment
Variable Hoisting
Logic Type Bool
Type
Constants
Operations
Summary: Logical operations
Integers
Type
Literals
Negation
Infix Operators
Sign of quotient and remainder
Comparisons
Constant Folding
Division by Zero
Out of bounds values
Summary: Integer Comparisons
Summary: Integer Operations
More Integers
Slices
Type
Inclusive Slice
Exclusive Slice
Counted Slice
Infinite Slices
Empty Slice
More Slices
Floating Point Numbers
Type
Literals
Operations
Summary: Double Comparisons
Summary: Double Operations
More Floats
Strings
Type
Literals
Length
Concatenation
Substring Extraction
Indexing
Comparisons
Summary: String Comparisons
Summary: Double Operations
Characters
Type
Extraction from String
Ordinal Value
Construction from Ordinal Value
Simple Control Flow
Sequential Flow
No operation
Labels and Gotos
Chained Conditionals
Loops
While loop
For loop
Arrays
Type
Value
Operations
Tuples
Type
Values
Projections
Procedures
Type
Definition
Invocation
Functions
Type
Definition by Expression
Definition by Statements
No side effects
Purity
Function Application
Pythagoras