Add tokens to Lexer
This commit is contained in:
parent
08aba8bf40
commit
fffa295d3c
2 changed files with 11 additions and 1 deletions
10
app/Lexer.hs
Normal file
10
app/Lexer.hs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
module Lexer where
|
||||
|
||||
data Token = Plus
|
||||
| Minus
|
||||
| Multiply
|
||||
| Divide
|
||||
| Integer Int
|
||||
| LBrace
|
||||
| RBrace
|
||||
deriving Show
|
||||
Loading…
Add table
Add a link
Reference in a new issue