Some updates to Schala source files

This commit is contained in:
greg 2018-08-20 19:03:55 -07:00
parent 1d5e5aa735
commit 5c9180efc2
3 changed files with 12 additions and 8 deletions

View File

@ -1,12 +1,11 @@
let c = 10
const c = 10
fn add(a, b) { fn add(a, b) {
const c = a + b let c = a + b
c c
} }
var b = 20 let mut b = 20
println(add(1,2)) println(add(1,2))
println(c + b) println(c + b)

View File

@ -1,10 +1,15 @@
fn main() { fn main() {
const a = 10 let a = 10
const b = 20 let b = 20
a + b a + b
} }
//foo //this is a one-line comment
/* this is
a multiline
comment
*/
print(main()) print(main())

View File

@ -6,7 +6,7 @@ fn sua(x): Int {
} }
//const a = getline() //let a = getline()
/* /*
if a == "true" { if a == "true" {