Skip to content

Commit

Permalink
[add] tokenizer types
Browse files Browse the repository at this point in the history
  • Loading branch information
RenzoMaggiori committed Dec 2, 2024
1 parent 9990e67 commit eb34860
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Ast/Tokenizer.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Ast.Tokenizer () where

data Separator = OpenParen | CloseParen

data Literal = LNumber Int | LBoolean Bool | LSymbol String

data Token = TLiteral Literal | TSeparator Separator

tokenize :: String -> Either String [Token]
tokenize _ = Left "error"

0 comments on commit eb34860

Please # to comment.