Interpreter Declaration#
The first line of a script file typically contains the interpreter declaration. The recommended shebang is #!/usr/bin/env lumesh.
There are two binary files available for download:
lumeorlume-se. You can link one of them tolumeshbased on your preference.
1ln -sf /usr/bin/lume /usr/bin/lumesh # or
2ln -sf /usr/bin/lume-se /usr/bin/lumeshScripts without a shebang line can only be run using
lume my.lm. Scripts with a shebang line can be executed directly withmy.lm.
File Extension#
The recommended file extension is .lm.
Example#
1#!/usr/bin/env lumesh
2
3fn add(msg, *salaries){
4 println msg.green()
5 println salaries.sum()
6}
7
8add('wang fang', 4500, 5000, 6100)
9
10if argv.len() {
11 println 'Your args:' argv
12}