This website requires JavaScript.
Explore
Help
Sign In
asegavac
/
boring-lang
Watch
1
Star
0
Fork
0
You've already forked boring-lang
Code
Issues
Pull Requests
1
Actions
Packages
Projects
Releases
Wiki
Activity
Files
1924dca6172a612a633637914104be4e02b3aa19
boring-lang
/
examples
/
math
/
main.bl
13 lines
119 B
Plaintext
Raw
Normal View
History
Unescape
Escape
setup main to specify an entry point
2020-04-19 22:22:15 -06:00
fn add(a, b) {
added let, about to add types
2021-04-18 08:51:21 -06:00
let foo = 4;
setup main to specify an entry point
2020-04-19 22:22:15 -06:00
a + b
}
fn subtract(a, b) {
a - b
}
fn main() {
add(4, subtract(5, 2))
}
Reference in New Issue
Copy Permalink