aboutsummaryrefslogtreecommitdiff
path: root/src/Lexer.hs
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-01 22:34:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-01 22:34:38 +0100
commit3d2b80cf454e682ba1fcd094465b7ee1a94297dd (patch)
tree68b6731494756df20fc4cc0cea3b556f92f0ed12 /src/Lexer.hs
parent476b0d2d6c27b9ec326b465480795582a3b22f4c (diff)
downloadmicro-lang-hs-3d2b80cf454e682ba1fcd094465b7ee1a94297dd.tar.gz
micro-lang-hs-3d2b80cf454e682ba1fcd094465b7ee1a94297dd.zip
Variable declaration
Diffstat (limited to 'src/Lexer.hs')
-rw-r--r--src/Lexer.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Lexer.hs b/src/Lexer.hs
index 1778b21..7d09752 100644
--- a/src/Lexer.hs
+++ b/src/Lexer.hs
@@ -9,8 +9,8 @@ import qualified Text.Parsec.Token as T
scanner :: T.TokenParser ()
scanner = T.makeTokenParser style
where
- ops = ["+", "*", "-", ";"]
- names = ["module", "private", "def", "return", "->", "true", "false"]
+ ops = ["+", "*", "-", ";", "="]
+ names = ["module", "private", "var", "def", "return", "->", "true", "false"]
style =
emptyDef
{ T.commentLine = "#",