added and editor function allMetas showing all meta positions and their types

This commit is contained in:
aarne
2008-12-10 14:20:52 +00:00
parent db8fd1f931
commit c69cfe7a50
2 changed files with 25 additions and 7 deletions

View File

@@ -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"