v/examples/native/hello_world.v

21 lines
296 B
V
Raw Normal View History

// fn println(s string) { }
2020-01-01 21:34:46 +00:00
// fn test_fn() {
// println('test fn')
2020-01-01 21:34:46 +00:00
//}
2019-11-19 06:53:52 +00:00
fn main() {
println('native test')
// i := 0
// for i < 5 {
for _ in 1 .. 5 {
println('Hello world from V native machine code generator!')
// i++
2019-11-19 06:53:52 +00:00
}
/*
2019-11-19 06:53:52 +00:00
println('Hello again!')
2019-11-29 09:33:04 +00:00
//test_fn()
println('done')
2020-01-01 21:34:46 +00:00
*/
2019-11-19 06:53:52 +00:00
}