Pre-Release 0.1.0 of Lucy Lang
Pre-release
Pre-release
$ java -jar lucy.jar
usage: ljvm [options] target
-c,--compile <file> compile lucy source code to lucy bit code
-d,--dump <file> dump module object to human readable form
-h,--help print the help message and exit
-o,--output <output> output file path
-r,--run <file> run lucy X bit code
-t,--token <file> dump lucy tokens
-v,--version print the version information and exit
func fibonacci(n) {
if n < 2 {
return n
} else {
return fibonacci(n-1) + fibonacci(n-2)
}
}
func main() {
text = "input a number: "
print(text)
n = number(input())
text = "The fibonacci number of " + string(n) + " is " + string(fibonacci(10))
print(text)
}