summaryrefslogtreecommitdiff
path: root/src/exper
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-12-10 14:20:52 +0000
committeraarne <aarne@cs.chalmers.se>2008-12-10 14:20:52 +0000
commitdb65b6bce10b16423eb30cc986aee39e7d08fb56 (patch)
treed43999f2dda5a0811125cea2e89bc31c35a6a0b0 /src/exper
parentfa8349bb54fb1325a88e99444f1555ff18ad5762 (diff)
added and editor function allMetas showing all meta positions and their types
Diffstat (limited to 'src/exper')
-rw-r--r--src/exper/EditShell.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/exper/EditShell.hs b/src/exper/EditShell.hs
index 40a8741e3..e5923ef18 100644
--- a/src/exper/EditShell.hs
+++ b/src/exper/EditShell.hs
@@ -66,6 +66,9 @@ interpret pgf dict st c = case words c of
let st' = goNext st
prLState pgf st'
return st'
+ "x":_ -> do
+ mapM_ putStrLn [show (showPosition p) ++ showType t | (p,t) <- allMetas st]
+ return st
"h":_ -> putStrLn commandHelp >> return st
_ -> do
putStrLn "command not understood"
@@ -96,7 +99,8 @@ commandHelp = unlines [
"h -- display this help message",
"m -- show refinement menu",
"p Anything -- parse Anything and refine with it",
- "r Function -- refine with Function",
+ "r Function -- refine with Function",
+ "x -- show all unknown positions and their types",
"4 -- refine with 4th item from menu (see m)",
"[1,2,3] -- go to position 1,2,3",
"> -- go to next node"