mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
vt -o ; Finnish infinitives
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
-- Stability : (stable)
|
-- Stability : (stable)
|
||||||
-- Portability : (portable)
|
-- Portability : (portable)
|
||||||
--
|
--
|
||||||
-- > CVS $Date: 2005/06/20 16:14:19 $
|
-- > CVS $Date: 2005/07/01 08:16:32 $
|
||||||
-- > CVS $Author: aarne $
|
-- > CVS $Author: aarne $
|
||||||
-- > CVS $Revision: 1.41 $
|
-- > CVS $Revision: 1.42 $
|
||||||
--
|
--
|
||||||
-- GF shell command interpreter.
|
-- GF shell command interpreter.
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
@@ -208,6 +208,8 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of
|
|||||||
_ -> Nothing
|
_ -> Nothing
|
||||||
returnArg (ATrms $ generateTrees opts gro mt) sa
|
returnArg (ATrms $ generateTrees opts gro mt) sa
|
||||||
|
|
||||||
|
CShowTreeGraph | oElem emitCode opts -> do -- -o
|
||||||
|
returnArg (AString $ visualizeTrees opts $ strees $ s2t a) sa
|
||||||
CShowTreeGraph -> do
|
CShowTreeGraph -> do
|
||||||
let g0 = writeFile "grphtmp.dot" $ visualizeTrees opts $ strees $ s2t a
|
let g0 = writeFile "grphtmp.dot" $ visualizeTrees opts $ strees $ s2t a
|
||||||
g1 = system "dot -Tps grphtmp.dot >grphtmp.ps"
|
g1 = system "dot -Tps grphtmp.dot >grphtmp.ps"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
-- Stability : (stable)
|
-- Stability : (stable)
|
||||||
-- Portability : (portable)
|
-- Portability : (portable)
|
||||||
--
|
--
|
||||||
-- > CVS $Date: 2005/06/20 16:14:19 $
|
-- > CVS $Date: 2005/07/01 08:16:32 $
|
||||||
-- > CVS $Author: aarne $
|
-- > CVS $Author: aarne $
|
||||||
-- > CVS $Revision: 1.6 $
|
-- > CVS $Revision: 1.7 $
|
||||||
--
|
--
|
||||||
-- Help on shell commands. Generated from HelpFile by 'make help'.
|
-- Help on shell commands. Generated from HelpFile by 'make help'.
|
||||||
-- PLEASE DON'T EDIT THIS FILE.
|
-- PLEASE DON'T EDIT THIS FILE.
|
||||||
@@ -317,6 +317,11 @@ txtHelpFile =
|
|||||||
"\n -c show categories only (no functions)" ++
|
"\n -c show categories only (no functions)" ++
|
||||||
"\n -f show functions only (no categories)" ++
|
"\n -f show functions only (no categories)" ++
|
||||||
"\n -g show as graph (sharing uses of the same function)" ++
|
"\n -g show as graph (sharing uses of the same function)" ++
|
||||||
|
"\n -o just generate the .dot file" ++
|
||||||
|
"\n examples:" ++
|
||||||
|
"\n p \"hello world\" | vt -o | wf my.dot ;; ! open -a GraphViz my.dot" ++
|
||||||
|
"\n -- This writes the parse tree into my.dot and opens the .dot file" ++
|
||||||
|
"\n -- with another application without generating .ps." ++
|
||||||
"\n" ++
|
"\n" ++
|
||||||
"\n-- subshells" ++
|
"\n-- subshells" ++
|
||||||
"\n" ++
|
"\n" ++
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
-- Stability : (stable)
|
-- Stability : (stable)
|
||||||
-- Portability : (portable)
|
-- Portability : (portable)
|
||||||
--
|
--
|
||||||
-- > CVS $Date: 2005/06/20 16:14:20 $
|
-- > CVS $Date: 2005/07/01 08:16:32 $
|
||||||
-- > CVS $Author: aarne $
|
-- > CVS $Author: aarne $
|
||||||
-- > CVS $Revision: 1.38 $
|
-- > CVS $Revision: 1.39 $
|
||||||
--
|
--
|
||||||
-- The datatype of shell commands and the list of their options.
|
-- The datatype of shell commands and the list of their options.
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
@@ -191,7 +191,7 @@ optionsOfCommand co = case co of
|
|||||||
CSpeakAloud -> flags "language"
|
CSpeakAloud -> flags "language"
|
||||||
CPutString -> both "utf8" "filter length"
|
CPutString -> both "utf8" "filter length"
|
||||||
CShowTerm -> flags "printer"
|
CShowTerm -> flags "printer"
|
||||||
CShowTreeGraph -> opts "c f g"
|
CShowTreeGraph -> opts "c f g o"
|
||||||
CSystemCommand _ -> none
|
CSystemCommand _ -> none
|
||||||
|
|
||||||
CPrintGrammar -> both "utf8" "printer lang"
|
CPrintGrammar -> both "utf8" "printer lang"
|
||||||
|
|||||||
@@ -288,6 +288,11 @@ vt, visualize_tree: vt Tree
|
|||||||
-c show categories only (no functions)
|
-c show categories only (no functions)
|
||||||
-f show functions only (no categories)
|
-f show functions only (no categories)
|
||||||
-g show as graph (sharing uses of the same function)
|
-g show as graph (sharing uses of the same function)
|
||||||
|
-o just generate the .dot file
|
||||||
|
examples:
|
||||||
|
p "hello world" | vt -o | wf my.dot ;; ! open -a GraphViz my.dot
|
||||||
|
-- This writes the parse tree into my.dot and opens the .dot file
|
||||||
|
-- with another application without generating .ps.
|
||||||
|
|
||||||
-- subshells
|
-- subshells
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user