This website works better with JavaScript.
Explore
Help
Register
Sign In
garrit
/
sabre
mirror of
https://git.sr.ht/~garritfra/sabre
Watch
1
Star
0
Fork
You've already forked sabre
0
Code
Issues
Projects
Releases
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121
Commits
9
Branches
11
Tags
787 KiB
Tree:
cdfbfa9899
assignment-operators
c_for-loops
clippy-fix
github-actions
llvm-integration
master
match-statements
modules
structs
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.1.0
v0.1.1
v0.2.0
v0.2.1
v0.3.0
v0.4.0
v0.5.0
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'cdfbfa9899'
${ noResults }
sabre
/
examples
/
greeter.sb
8 lines
105 B
Raw
Normal View
History
Unescape
Escape
Fix examples
3 years ago
fn main() {
Add documentation for datatypes
3 years ago
println(greet("World"))
Add greeter example
3 years ago
}
Add return types to examples
3 years ago
fn greet(name: string): string {
Add basic conditionals; remove semicolons
3 years ago
return "Hello " + name
Add println function
3 years ago
}