Dino compiler: language, formatter, language server, docs, editor support

Compiler in Rust (lexer, parser, checker, C codegen), maps, chars,
dino fmt, dino lsp (diagnostics, formatting, outline, definition,
hover, completion, signature help), docs, examples, VS Code/Vim files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Your NameandClaude Sonnet 5.5 committed 2026-11-07 23:46:12 +01:00
1 parent 3e2779f447
commit eaf9567a36
117 files changed
+19970

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
func say(msg: string, v: int): int {
print(msg)
return v
}
func add(a, b, c: int): int {
return a + b + c
}
func yes(msg: string): bool {
print(msg)
return true
}
func no(msg: string): bool {
print(msg)
return false
}
func main() {
print("arguments run left to right:")
print(add(say("first", 1), say("second", 2), say("third", 3)))
print("&& and || short-circuit:")
if no("A") && yes("B") {
print("unreachable")
}
if yes("C") || yes("D") {
print("done")
}
var ok = no("E") || yes("F") && yes("G")
print(ok)
}