| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Twelf server is a stand-alone command interpreter which provides the
functionality of the Twelf structure in ML (see section 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 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 `%.'.
| 13.1 Server Types | Server command argument types | |
| 13.2 Server Commands | List of Twelf server commands |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The server commands employ arguments of the following types.
fileThe name of a file, relative to the current working directory
idA Twelf identifier
reconTraceMode Either Progressive or Omniscient (see section Tracing Reconstruction)
strategy Either FRS or RFS (see section Search Strategies)
tableStrategy Either Variant or Subsumption (see section Tabled Logic Programming)
bool Either true or false
nat A natural number (starting at 0)
limit Either * (to indicate no limit) or a natural number
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Twelf server recognized the following commands.
set parameter valueSet parameter to value, where parameter is one of the following (explained in Environment Parameters).
chatter natdoubleCheck boolunsafe boolPrint.implicit boolPrint.depth limitPrint.length limitPrint.indent natPrint.width natTrace.detail natCompile.optimize boolRecon.trace boolRecon.traceMode reconTraceModeProver.strategy strategyProver.maxSplit natProver.maxRecurse natTable.strategy tableStrategyget parameterPrint the current value of parameter (see table above).
Trace.trace id1 ... idnTrace given constants.
Trace.traceAllTrace all constants.
Trace.untraceUntrace all constants.
Trace.break id1 ... idnSet breakpoint for given constants.
Trace.breakAllBreak on all constants.
Trace.unbreakRemove all breakpoints.
Trace.showShow current trace and breakpoints.
Trace.resetReset all tracing and breaking.
Print.sgnPrint current signature.
Print.progPrint current signature as program.
Print.subordPrint current subordination relation.
Print.domainsPrint registered constraint domains.
Print.TeX.sgnPrint current signature in TeX format.
Print.TeX.progPrint current signature in TeX format as program.
Timers.showPrint and reset timers.
Timers.resetReset timers.
Timers.checkPrint, but do not reset timers.
OS.chDir fileChange working directory to file.
OS.getDirPrint current working directory.
OS.exitExit Twelf server.
quitQuit Twelf server (same as exit).
Config.read fileRead current configuration from file.
Config.loadLoad current configuration.
Config.appendLoad current configuration without prior reset.
make fileRead and load current configuration from file.
resetReset global signature.
loadFile file Load Twelf file file.
decl idShow constant declaration for id.
topEnter interactive query loop (see section Interactive Queries).
Table.topEnter interactive loop for tables queries (see section Tabled Logic Programming).
versionShow server version.
helpShow available server commands, parameters, and server types.
| [ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Florian Rabe on April, 3 2009 using texi2html 1.76.