HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Syntax.Parser.LexActions

This module contains the building blocks used to construct the lexer.

  • 24 values
  • PackageAgda-2.7.0.1
  • Exports24
  • LanguageHaskell2010
  • LicenceMIT
  • SourceLexActions.hs

Main function

1 declaration
valuelexToken :: Parser Token
#

Scan the input to find the next token. Calls alexScanUser. This is the main lexing function where all the work happens. The function lexer, used by the parser is the continuation version of this function.

Lex actions

0 declarations

General actions

valuelexError :: String -> Parser a
#

For lexical errors we want to report the current position as the site of the error, whereas for parse errors the previous position is the one we're interested in (since this will be the position of the token we just lexed). This function does parseErrorAt the current position.

Specialized actions

Lex predicates

3 declarations