Add tokens to Lexer

This commit is contained in:
Laborratte 5 2024-07-15 22:22:56 +02:00
parent 08aba8bf40
commit fffa295d3c
Signed by: Laborratte5
GPG key ID: 3A30072E35202C02
2 changed files with 11 additions and 1 deletions

10
app/Lexer.hs Normal file
View file

@ -0,0 +1,10 @@
module Lexer where
data Token = Plus
| Minus
| Multiply
| Divide
| Integer Int
| LBrace
| RBrace
deriving Show

View file

@ -52,7 +52,7 @@ executable simple-arithmetic-compiler
main-is: Main.hs main-is: Main.hs
-- Modules included in this executable, other than Main. -- Modules included in this executable, other than Main.
-- other-modules: other-modules: Lexer
-- LANGUAGE extensions used by modules in this package. -- LANGUAGE extensions used by modules in this package.
-- other-extensions: -- other-extensions: