❧
❧
Top-Level Definitions
Top-level definitions consists of compilation units, packagings, and package objects.
Next Page
❧
Compilation Units
❦
Contents
treehugger.scala
I heard you like code, so…
Compilers 101
Turning the table
Symbols, Types, and Trees
treehugger DSL
Forest
Literals and Comments
Literals
Comments
Basic Declarations and Definitions
Values
Variables
Type members
Functions
Import Clauses
Classes and Objects
Classes
Modifiers
Polymorphic Classes
Case Classes
Traits
Object Definitions
Expressions
Basic Expressions
Function Applications
Type Applications
Tuples and Parentheses
Instance Creation Expressions
Blocks
Prefix, Infix, and Postfix Operations
Types, Annotations, and Assignments
If Expressions
While loops
For expressions
Return Expressions and Exception Handling
Anonymous Functions
String Interpolation
Type-Level Expressions
Implicits
Pattern Matching
Patterns
Pattern Matching Expressions
Case Sequence Functions
Pattern Values
Top-Level Definitions
Compilation Units
Packaging
Package Objects
Annotations
Standard Library
Root Class
Value Class Operators
Collection Class Operators
Type Constructors
Contents in Depth
Combined Pages
treehugger.scala
— Top-Level Definitions