1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

Contextualize after the right term.

This commit is contained in:
Rob Rix 2017-08-14 16:50:16 -04:00
parent 82b1bc1f87
commit 6f22e49623

View File

@ -68,13 +68,13 @@ postContextualize context rule end = make <$> rule <*> Assignment.manyThrough co
Just cs -> (makeTerm1 (Context cs node), end) Just cs -> (makeTerm1 (Context cs node), end)
_ -> (node, end) _ -> (node, end)
infixContext :: (Context :< fs, Alternative m, Semigroup a, HasCallStack, Apply1 Foldable fs) infixContext :: (Context :< fs, Assignment.Parsing m, Semigroup a, HasCallStack, Apply1 Foldable fs)
=> m (Term (Union fs) a) => m (Term (Union fs) a)
-> m (Term (Union fs) a) -> m (Term (Union fs) a)
-> m (Term (Union fs) a) -> m (Term (Union fs) a)
-> [m (Term (Union fs) a -> Term (Union fs) a -> Union fs a)] -> [m (Term (Union fs) a -> Term (Union fs) a -> Union fs a)]
-> m (Union fs a) -> m (Union fs a)
infixContext context left right operators = uncurry (&) <$> postContextualize context left (Assignment.choice operators) <*> right infixContext context left right operators = uncurry (&) <$> postContextualize context left (Assignment.choice operators) <*> (fst <$> postContextualize context right Assignment.eof)
-- Undifferentiated -- Undifferentiated