futhark-0.25.6: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Futhark.Parser.Lexer.Wrapper

Description

Utility definitions used by the lexer. None of the default Alex "wrappers" are precisely what we need. The code here is highly minimalistic. Lexers should not be complicated!

Synopsis

Documentation

type AlexInput = (Pos, Char, ByteString, Int64) Source #

The input type. Contains:

  1. current position
  2. previous char
  3. current input string
  4. bytes consumed so far

data LexerError Source #

Constructors

LexerError Loc Text 

Instances

Instances details
Show LexerError Source # 
Instance details

Defined in Language.Futhark.Parser.Lexer.Wrapper