From 4e85f8ada33b2b7fb5f06750ef5f1d9ac81130b2 Mon Sep 17 00:00:00 2001 From: krasimir Date: Sat, 1 May 2010 21:02:32 +0000 Subject: refactor BracketedString --- src/runtime/haskell/PGF/Linearize.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/haskell/PGF/Linearize.hs') diff --git a/src/runtime/haskell/PGF/Linearize.hs b/src/runtime/haskell/PGF/Linearize.hs index e126bc552..503b98d7b 100644 --- a/src/runtime/haskell/PGF/Linearize.hs +++ b/src/runtime/haskell/PGF/Linearize.hs @@ -63,7 +63,7 @@ type CncType = (CId, FId) -- concrete type is the abstract type (the category linTree :: PGF -> Language -> Expr -> [Array LIndex BracketedTokn] linTree pgf lang e = - [amapWithIndex (\label -> Bracket_ fid label cat) lin | (_,((cat,fid),lin)) <- lin0 [] [] Nothing 0 e] + [amapWithIndex (\label -> Bracket_ cat fid label) lin | (_,((cat,fid),lin)) <- lin0 [] [] Nothing 0 e] where cnc = lookMap (error "no lang") lang (concretes pgf) lp = lproductions cnc @@ -127,7 +127,7 @@ linTree pgf lang e = compute (SymKP ts alts) = [LeafKP ts alts] getArg d r - | not (null arg_lin) = [Bracket_ fid r cat arg_lin] + | not (null arg_lin) = [Bracket_ cat fid r arg_lin] | otherwise = arg_lin where arg_lin = lin ! r -- cgit v1.2.3