This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
semantic-core/src/Data/Core Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ core :: (TokenParsing m, Monad m) => m (Term Core User)
5050core = expr
5151
5252expr :: (TokenParsing m , Monad m ) => m (Term Core User )
53- expr = ifthenelse <|> lambda <|> rec <|> assign
53+ expr = ifthenelse <|> lambda <|> rec <|> load <|> assign
5454
5555assign :: (TokenParsing m , Monad m ) => m (Term Core User )
5656assign = application <**> (flip (Core. .=) <$ symbolic ' =' <*> application <|> pure id ) <?> " assignment"
@@ -64,7 +64,6 @@ projection = foldl' (Core....) <$> atom <*> many (namedValue <$> (dot *> name))
6464atom :: (TokenParsing m , Monad m ) => m (Term Core User )
6565atom = choice
6666 [ comp
67- , load
6867 , lit
6968 , ident
7069 , parens expr
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ prettyCore style = precBody . go . fmap name
7171 , keyword " else" <+> precBody (go fal)
7272 ]
7373
74- Load p -> prec 8 (keyword " load" <+> withPrec 9 (go p))
74+ Load p -> prec 3 (keyword " load" <+> withPrec 9 (go p))
7575 item :. body -> prec 9 (withPrec 9 (go item) <> symbol " ." <> name body)
7676
7777 lhs := rhs -> prec 3 . group . nest 2 $ vsep
You can’t perform that action at this time.
0 commit comments