Human: write me an example parser using the applicative style and 3 different tokens using the latest version of parsec in haskell.
Assistant:
Sure! Here is an example parser using the applicative style and 3 different tokens using the latest version of Parsec in Haskell:
Copy codeimport Text.Parsec
-- Our three tokens are integers, floating point numbers, and strings data Token = IntToken Int | FloatToken Double