File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ module Parser.Parser where
33import Analyser.Util (rFoldl )
44import Data.Either.Combinators (isRight )
55import qualified Data.Text as T
6+ import Debug.Trace (trace )
67import Parser.Ast (Expr (.. ), UnaryOp (Neg ), VDataType )
78import Parser.Combinators
89 ( Parser ,
@@ -118,7 +119,7 @@ arbitraryBlock :: Parser Expr
118119arbitraryBlock = braces $ many expr >>= \ x -> pure $ ArbitraryBlock x
119120
120121functionCall :: Parser Expr
121- functionCall = parens $ identifier >>= \ x -> FunctionCall x <$> exprs
122+ functionCall = parens $ identifier >>= \ x -> desugarExpr . FunctionCall x <$> exprs
122123
123124conditional :: Parser Expr
124125conditional = parens $ rword " if" >> Conditional <$> expr <*> expr <*> expr
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ module Sugar.Sugar where
22
33import Analyser.Util (rFoldl )
44import qualified Data.Text as T
5+ import Debug.Trace (trace )
56import Parser.Ast (Expr (FloatLiteral , FunctionCall ))
67
78mFilter :: [a ] -> (a -> Bool ) -> [a ]
You can’t perform that action at this time.
0 commit comments