1
1
mirror of https://github.com/github/semantic.git synced 2025-01-01 19:55:34 +03:00
This commit is contained in:
Patrick Thomson 2018-04-30 16:29:39 -04:00
parent 25813e00e0
commit 2067fb7459

View File

@ -210,8 +210,8 @@ instance Show1 Subscript where liftShowsPrec = genericLiftShowsPrec
-- TODO: Implement Eval instance for Subscript
instance Evaluatable Subscript where
eval (Subscript l [r]) = join (index <$> subtermValue l <*> subtermValue r)
eval (Subscript _ _) = throwResumable (Unspecialized ("Eval unspecialized for subscript with slices"))
eval (Member _ _) = throwResumable (Unspecialized ("Eval unspecialized for member access"))
eval (Subscript _ _) = throwResumable (Unspecialized "Eval unspecialized for subscript with slices")
eval (Member _ _) = throwResumable (Unspecialized "Eval unspecialized for member access")
-- | Enumeration (e.g. a[1:10:1] in Python (start at index 1, stop at index 10, step 1 element from start to stop))