-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Robert Durst edited this page Mar 16, 2019
·
15 revisions
Welcome to the sailfish wiki!
Since this repo is for the sailfishc compiler, this wiki will also cover certain aspects of the design of the language and compiler. That information may be found in this section.
Currently there are two versions of the grammar, the grammar of which was originally aimed for in 0.0.1 and the actual grammar for 0.0.1. Since I will likely build from the original grammar, I did not delete it. However, this grammar is not current, instead refer to the Mini Grammar. Both of these links can be found on the side.
This is a list of certain design decisions that might be lost or forgotten:
- No byte literals
- Expressions are left associated with no user controlled ordering
- No negations in groupings (even though this make sense)
- Cannot have a return statement in a block expected to return void aka no empty returns
- Can only assign to identifiers and attribute accessors
- Even if nested returns in if statement or nested bodies, still need one at the end