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
|
||||
|
|
@ -52,7 +52,7 @@ executable simple-arithmetic-compiler
|
|||
main-is: Main.hs
|
||||
|
||||
-- Modules included in this executable, other than Main.
|
||||
-- other-modules:
|
||||
other-modules: Lexer
|
||||
|
||||
-- LANGUAGE extensions used by modules in this package.
|
||||
-- other-extensions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue