mirror of
https://github.com/anoma/juvix.git
synced 2024-12-11 08:25:46 +03:00
Remove lambda from reservedSymbols (#1568)
This commit is contained in:
parent
803d2008d9
commit
a39ebf92f6
@ -471,10 +471,10 @@ atom ::
|
|||||||
HashMap Text Index ->
|
HashMap Text Index ->
|
||||||
ParsecS r Node
|
ParsecS r Node
|
||||||
atom varsNum vars =
|
atom varsNum vars =
|
||||||
exprNamed varsNum vars
|
exprLambda varsNum vars
|
||||||
|
<|> exprNamed varsNum vars
|
||||||
<|> exprConstInt
|
<|> exprConstInt
|
||||||
<|> exprConstString
|
<|> exprConstString
|
||||||
<|> exprLambda varsNum vars
|
|
||||||
<|> exprLetrecMany varsNum vars
|
<|> exprLetrecMany varsNum vars
|
||||||
<|> exprLetrecOne varsNum vars
|
<|> exprLetrecOne varsNum vars
|
||||||
<|> exprLet varsNum vars
|
<|> exprLet varsNum vars
|
||||||
|
@ -102,7 +102,7 @@ delimiterSymbols :: [Char]
|
|||||||
delimiterSymbols = ","
|
delimiterSymbols = ","
|
||||||
|
|
||||||
reservedSymbols :: [Char]
|
reservedSymbols :: [Char]
|
||||||
reservedSymbols = "@\";(){}[].λ\\"
|
reservedSymbols = "@\";(){}[]."
|
||||||
|
|
||||||
validFirstChar :: Char -> Bool
|
validFirstChar :: Char -> Bool
|
||||||
validFirstChar c = not (isNumber c || isSpace c || (c `elem` reservedSymbols))
|
validFirstChar c = not (isNumber c || isSpace c || (c `elem` reservedSymbols))
|
||||||
|
Loading…
Reference in New Issue
Block a user