-
Notifications
You must be signed in to change notification settings - Fork 0
Syntax Features Overview
Fabian Lauer edited this page Apr 17, 2017
·
18 revisions
The following table lists available syntax features and the current status of their implementation in the parser.
πΒ on master, stable
βΒ on master, potentially buggy
β not implemented or not on master branch
Feature | Syntax Example | Status |
---|---|---|
Function Declarations | func name() { ... } |
π |
(Anonymous) Functions as Expessions | func () { ... } |
β |
Variable Declarations |
let , const
|
π |
Class Declarations | class |
π |
Class Instance Variable Declarations | π | |
Class Instance Method Declarations | π | |
Init Methods | β | |
Static Class Variable Declarations |
static let , static const
|
β |
Static Class Method Declarations | static func |
β |
Class Access Modifiers |
private , protected
|
β |
Operator Overload Declarations | β | |
CONTROL FLOW | ||
Conditionals |
if , else if , else
|
β |
For Loops | for |
β |
Switch Statements | switch ... case |
β |
EXPRESSIONS | ||
Binary Operations |
a + b , 2 * 3 , a = b
|
β |
Unary Operations | a++ |
β |
Function Calls |
fn() , fn(a, b, c) , ... |
β |
Property Access | a.b.c |
β |
Expression Lists |
a, b , 1, 2, 3 , ... |
β |
LITERALS | ||
String Literals |
"" , "text" , ... |
β |
Numeric Literals |
1 , 2 , ... |
β |
Array Literals |
[1, 2, 3] , [ ] , ... |
β |
PACKAGES | ||
Basic Import Statements | import "./file" |
β |
Basic Export Statements | export varName |
β |
TYPES | ||
Array Type Expressions |
Int[] , String[] , β¦ |
β |
Type Aliases | β | |
POLYMORPHISM | β | |