giml-syntax-0.1.0.0: Syntax for Giml - A purely functional programming language with emphasis on structural typing
Safe HaskellSafe-Inferred
LanguageGHC2021

Language.Giml.Syntax.Parse.Common

Description

Utilities for Giml parsers

Documentation

data Annotated ann a Source #

Constructors

Annotated 

Fields

Instances

Instances details
Functor (Annotated ann) Source # 
Instance details

Defined in Language.Giml.Syntax.Parse.Common

Methods

fmap :: (a -> b) -> Annotated ann a -> Annotated ann b #

(<$) :: a -> Annotated ann b -> Annotated ann a #

(Show a, Show ann) => Show (Annotated ann a) Source # 
Instance details

Defined in Language.Giml.Syntax.Parse.Common

Methods

showsPrec :: Int -> Annotated ann a -> ShowS #

show :: Annotated ann a -> String #

showList :: [Annotated ann a] -> ShowS #

addLoc :: (t -> Expr ann) -> Annotated ann t -> Annotated ann (Expr ann) Source #

addLoc' :: (t -> Expr ann) -> Annotated ann t -> Expr ann Source #

chainLoc :: Int -> Loc -> Loc -> Loc Source #

failure :: [Token] -> [Token] -> Parser a Source #