welsonjs/helloworld.ls

26 lines
425 B
Plaintext
Raw Normal View History

2022-11-29 05:42:34 +00:00
fortune = require "lib/fortune.ls"
2022-11-29 05:22:58 +00:00
# Easy listing of implicit objects
table1 =
* id: 1
name: 'george'
* id: 2
name: 'mike'
* id: 3
name: 'donald'
table2 =
* id: 2
age: 21
* id: 1
age: 20
* id: 3
age: 26
main = (args) ->
console.log JSON.stringify(table1)
console.log JSON.stringify(table2)
console.log "Hello world, LiveScript"
2022-11-29 05:42:34 +00:00
fortune.sayFortune "fortune!"
2022-11-29 05:22:58 +00:00
exports.main = main