After executing the interpreter with the "dagger" command, you will be presented with the following:
Dagger Version x.x.x.x.x
Press Ctrl+c to Exit
dagger>
You can run lines of code by writing them after "dagger> "
dagger> print "Hello World"
Hello World
Dagger uses Polish Notation in order to perform more complex mathematical operations. You can read more about it here.
You can evaluate external files in two ways:
dagger hello.dgr
Hello
dagger> load "hello.dgr"
Hello
In order for expressions to be evaluated in external files, they must be written inside parentheses:
# This will not be evaluated:
print "Hello World!"
# This will be evaluated:
(print "Hello World!")