mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 16:54:25 +00:00
Install, CI, seeds and docs for the compiler written in Finch
bootstrap/install.sh and a share/finch lookup for the runtime and std; an ARM64 Linux seed; bootstrap/README.md; CI builds from the seed on x64 and ARM64 and runs every test on Windows (Wine) and ARM64 (qemu); README, install and layout sections of the guides (EN+PL) no longer talk about CMake; editors know enum, match and export. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015f73FesGZGYPkmDvUcj6QX
This commit is contained in:
parent
636eaefe59
commit
81df9f8c3e
15 changed files with 125197 additions and 30152 deletions
|
|
@ -156,5 +156,43 @@
|
|||
"}"
|
||||
],
|
||||
"description": "Every key and value of a map (or index and element of an array)"
|
||||
},
|
||||
"enum": {
|
||||
"prefix": "enum",
|
||||
"body": [
|
||||
"enum ${1:Name} {",
|
||||
"\t${2:First},",
|
||||
"\t${3:Second}",
|
||||
"}"
|
||||
],
|
||||
"description": "An enum: a type with a few named values"
|
||||
},
|
||||
"match": {
|
||||
"prefix": "match",
|
||||
"body": [
|
||||
"match ${1:value} {",
|
||||
"\t${2:pattern} -> $0",
|
||||
"\telse -> ",
|
||||
"}"
|
||||
],
|
||||
"description": "match: pick what to do from a value"
|
||||
},
|
||||
"generic function": {
|
||||
"prefix": "fng",
|
||||
"body": [
|
||||
"fn ${1:name}[${2:T}](${3:T x}) -> ${2:T} {",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "A function that works for any type"
|
||||
},
|
||||
"generic struct": {
|
||||
"prefix": "structg",
|
||||
"body": [
|
||||
"struct ${1:Name}[${2:T}] {",
|
||||
"\t$0",
|
||||
"}"
|
||||
],
|
||||
"description": "A struct that holds any type"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue