mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-21 10:49:33 -06:00
Grammar and languages to run in testsuite can be specified by command line options, see README
This commit is contained in:
@@ -188,7 +188,7 @@ eval cxt t = case t of
|
||||
case (eval cxt t, eval cxt u) of
|
||||
(LFTuple vs, LFInt i) -> vs !! (i-1)
|
||||
(tp@(LFTuple _), LFTuple is) | all isInt is -> foldl (\(LFTuple vs) (LFInt i) -> vs !! (i-1)) tp is
|
||||
(t',u') -> error $ printf "Incompatible projection:\n%s\n%s" (show t) (show u)
|
||||
(t',u') -> error $ printf "Incompatible projection:\n- %s ~> %s\n- %s ~> %s" (show t) (show t') (show u) (show u')
|
||||
LFArgument i -> cxt !! (i-1)
|
||||
_ -> t
|
||||
|
||||
|
||||
Reference in New Issue
Block a user