mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 11:12:51 -06:00
Improvements in hte editor.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user