Improvements in hte editor.

This commit is contained in:
aarne
2003-09-24 14:26:35 +00:00
parent b1402e8bd6
commit 6e9258558a
19 changed files with 219 additions and 111 deletions

View File

@@ -129,6 +129,13 @@ newCat gr cat@(m,c) _ = do
testErr (null cont) "start cat must have null context" -- for easier meta refresh
initStateCat cont cat
newFun :: CGrammar -> Fun -> Action
newFun gr fun@(m,c) _ = do
typ <- lookupFunType gr m c
cat <- valCat typ
st1 <- newCat gr cat initState
refineWithAtom True gr (qq fun) st1
newTree :: Tree -> Action
newTree t _ = return $ tree2loc t