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:
1 parent
3e2779f447
commit
eaf9567a36
117 files changed
+19970
No files matched your search
@@ -0,0 +1,19 @@
|
||||
func greet(name: string): string {
|
||||
return "Hello, " + name + "!"
|
||||
}
|
||||
|
||||
func main() {
|
||||
var name = "Dino"
|
||||
print(greet(name))
|
||||
var n = 3
|
||||
print("n is {n}, doubled {n * 2}, big? {n > 2}")
|
||||
print("pi is about {3.5 + 0.25}")
|
||||
print("a" < "b", "abc" == "abc", "x" != "x")
|
||||
print("tab\there \"quoted\" \{braces}")
|
||||
print("café ünï")
|
||||
var s = ""
|
||||
for i in 0..5 {
|
||||
s += "{i},"
|
||||
}
|
||||
print(s)
|
||||
}
|
||||
Reference in new issue
Block a user