The Twelf server is a stand-alone command interpreter which provides the
functionality of the Twelf
structure in ML (see section 11 ML Interface), but allows no ML definitions. It is significantly smaller
than Standard ML and is the recommended way to interact with Twelf
except for developers. Its behavior regarding configurations is
slightly different in that the server maintains a current configuration,
rather than allowing the binding of names to configurations.
Configuration are defined with the Config.read
command which
takes a configuration filename as argument.
In Emacs, the Twelf server typically runs in a process buffer
called *twelf-server*
. The user can select this buffer
and directly type commands to the Twelf server. This style
of interaction is inherited from the comint package for Emacs,
but typically one works through advanced commands in Twelf
mode (see section 13.1 Twelf Mode).
The Twelf server prompts with %% OK %%
or %% ABORT %%
depending on the success of failure of the previous operation. It
accepts commands and their arguments on one line, except that additional
Twelf declarations which may be required are read separately, following
the command line. Reading declarations can be forcibly terminated
with the end-of-file token `%.'.
The server commands employ arguments of the following types.
file
id
reconTraceMode
Progressive
or Omniscient
(see section 4.7 Tracing Reconstruction)
strategy
FRS
or RFS
(see section 10.4 Search Strategies)
tableStrategy
Variant
or Subsumption
(see section 5.9 Tabled Logic Programming)
bool
true
or false
nat
0
)
limit
*
(to indicate no limit) or a natural number
The Twelf server recognized the following commands.
set parameter value
chatter nat
doubleCheck bool
unsafe bool
Print.implicit bool
Print.depth limit
Print.length limit
Print.indent nat
Print.width nat
Trace.detail nat
Compile.optimize bool
Recon.trace bool
Recon.traceMode reconTraceMode
Prover.strategy strategy
Prover.maxSplit nat
Prover.maxRecurse nat
Table.strategy tableStrategy
get parameter
Trace.trace id1 ... idn
Trace.traceAll
Trace.untrace
Trace.break id1 ... idn
Trace.breakAll
Trace.unbreak
Trace.show
Trace.reset
Print.sgn
Print.prog
Print.subord
Print.domains
Print.TeX.sgn
Print.TeX.prog
Timers.show
Timers.reset
Timers.check
OS.chDir file
OS.getDir
OS.exit
quit
Config.read file
Config.load
Config.append
make file
reset
loadFile file
decl id
top
Table.top
help
Go to the first, previous, next, last section, table of contents.