|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fmrisc.ProofNavigator.Main
public final class Main
Command line interface to ProofNavigator.
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
static boolean |
ask(java.lang.String question)
Ask question to be answered by user with 'y' or 'n' |
static void |
displayDeclarations()
Signal that declarations are to be displayed. |
static void |
exit(int code)
Terminate program with denoted exit code. |
static java.lang.String |
getVersion()
Return version string. |
static void |
init()
Initialize the system state. |
static boolean |
isRunning()
Signal whether command is being processed. |
static void |
main(java.lang.String[] args)
Command line interface to ProofNavigator. |
static boolean |
newDeclaration(Declaration decl)
Signal new declaration. |
static boolean |
open(java.lang.String path)
Read command from file with denoted path. |
static Command |
parse()
Parse next command. |
static void |
quit()
Quit (session or current proof) after asking user whether to do so. |
static java.lang.String |
readLine()
Read line of input from console. |
static void |
resetProof()
Signal there is no current proof. |
static void |
run()
Run ProofNavigator interpreter. |
static boolean |
setContext(java.lang.String path)
Set context directory. |
static void |
setProof(Proof proof)
Signal current proof. |
static void |
setProofState(ProofState state)
Signal current proof state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- empty or file to be read upon startuppublic static java.lang.String getVersion()
public static void init()
public static void run()
public static Command parse()
public static void exit(int code)
code
- the exit codepublic static void quit()
public static java.lang.String readLine()
public static boolean ask(java.lang.String question)
question
- the question asked
public static void setProof(Proof proof)
proof
- the current proofpublic static void resetProof()
public static void setProofState(ProofState state)
state
- the current proof state.public static boolean newDeclaration(Declaration decl)
decl
- the new declaration.
public static void displayDeclarations()
public static boolean open(java.lang.String path)
path
- the (absolute or relative) path to the file.
public static boolean setContext(java.lang.String path)
path
- the (absolute or relative) path to context directory
(if null, a default path is used).
public static boolean isRunning()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |