On-the-fly Compiler and AST Interpreter

The on-the-fly compiler of Pnuts compiles scripts at runtime and generate Java bytecode on memory, so that the processing speed gets faster. pnuts command uses the on-the-fly compiler unless -pure option is explicitly specified.

On the other hand, the AST (Abstract Syntax Tree) interpreter executes scripts without compiling them.

Command Options

C:\> pnuts { -pure } { scripts }

When "-pure" option is given to pnuts command, the on-the-fly compiler is disabled and the AST interpreter is used.

C:\> pnuts
Pnuts version 1.0rc2 (04/16/2002), 1.3.1_02 (Sun Microsystems Inc.)
Java HotSpot(TM) Client VM (mixed mode)
> getContext().getImplementation()
pnuts.compiler.CompilerPnutsImpl@df503
C:\> pnuts -O { scripts }

-O option optimizes the compilation. The line number of error is not printed.