-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up the Flix compiler project
Jakob Schneider edited this page Jun 2, 2022
·
32 revisions
Here's how to set up the the Flix compiler project.
- Set up ssh and gpg keys
- Clone my own fork
- Create a branch called main with
git branch main - Check out
mainwithgit checkout main - Delete
masterlocallygit branch -D master - Set up Flix as remote
git remote add -t master -m master upstream git@github.com:flix/flix.git - Fetch and update branches
git fetch --prune --all - Set the correct upstream
git branch --set-upstream-to=upstream/HEAD main - Pull latest changes
git pull
Remember to set signingKey, email, and name in the global git settings with git config --global user.<key> <value>
In short summary:
$ git clone git@github.com:jaschdoc/flix.git
$ git branch main
$ git checkout main
$ git branch -D master
$ git remote add -t master -m master upstream git@github.com:flix/flix.git
$ git fetch --prune -all
$ git branch --set-upstream-to=upstream/HEAD main
$ git pullMy IntelliJ font settings are:
- Editor > Font > Size: 22.0
- Editor > File Types > Add Flix (Description: Flix, Line Comment:
//, Block Comment start:/*, Block Comment end*/) - Check support boxes and add keywords below. - Add
libjars to library instead of using Gradle
Here's a short list of the Flix keywords (may be out of date) for IntelliJ highlighting
1
->
<=>
=>
???
BigInt
Bool
Char
Float32
Float64
Int16
Int32
Int64
Int8
Nil
ReifiedType
Static
String
Unit
alias
and
as
case
catch
chan
class
def
deref
else
enum
exists
f32
f64
false
forall
force
i16
i32
i64
i8
if
ii
import
inline
instance
lat
law
lawful
lawless
lazy
let
match
mod
namespace
new
not
null
opaque
or
override
project
pub
ref
region
rel
rem
select
set
solve
spawn
true
try
type
use
with
2
reify
reifyBool
reifyEff
reifyType
3
Impure
Pure
Read
Type
Write
ef
ef1
ef2
reg
4
@test