Next: Kite Language Specification, Previous: About Kite, Up: Top
To see what command line arguments are available, use the -h flag. It will produce something similar to the following:
harry:trunk mooneer$ kite -h
This is kite, version 1.0a1 (built on i386-apple-darwin9.1.0)
Copyright (C) 2007 Mooneer Salem
Usage: kite [-h|-v] [file]
-v: Print version information
-h: This message
[file]: File to execute or run (optional). If not specified, defaults to
standard input.
To run a Kite application, simply include the filename as an argument:
harry:trunk mooneer$ kite test.kt
Hello, world!
harry:trunk mooneer$
Not including a filename will cause Kite to take the program from standard input:
harry:trunk mooneer$ kite
"Hello, world!"|print()
^D
Hello, world!
harry:trunk mooneer$
kdb)Kite has a built-in debugger for user-written code, called kdb. To execute it,
pass kdb the name of your program:
harry:trunk mooneer$ kdb test.kt
Break at file test.kt
1: "Hello, world!"|print;
>
While in kdb, the following commands are available:
eval [code]exitclear [file]:[line][file] line [line].
break [file]:[line][file] line [line].
stepnextcontev [code]eval.
exexit.
cl [file]:[line]clear.
b [file]:[line]break.
sstep.
nnext.
cocont.