examples of file conversion with ps

This commit is contained in:
aarne
2009-03-28 13:41:29 +00:00
parent 587549a871
commit 215d74e58e
2 changed files with 4 additions and 1 deletions

View File

@@ -416,7 +416,9 @@ allCommands cod env@(pgf, mos) = Map.fromList [
"l (EAdd 3 4) | ps -code -- linearize code-like output",
"ps -lexer=code | p -cat=Exp -- parse code-like input",
"gr -cat=QCl | l | ps -bind -- linearization output from LangFin",
"ps -to_devanagari \"A-p\" -- show Devanagari in UTF8 terminal"
"ps -to_devanagari \"A-p\" -- show Devanagari in UTF8 terminal",
"rf -file=Hin.gf | ps -env=quotes -to_devanagari -- convert translit to UTF8",
"rf -file=Ara.gf | ps -from_utf8 -env=quotes -from_arabic -- convert UTF8 to transliteration"
],
exec = \opts ->
let (os,fs) = optsAndFlags opts in

View File

@@ -26,6 +26,7 @@ import GF.Grammar.PrGrammar
import Data.List
import Control.Monad
import Debug.Trace
matchPattern :: [(Patt,Term)] -> Term -> Err (Term, Substitution)
matchPattern pts term =