Kawaii-Parser-3.0.0: A simple parsing library and some additional utilities.
Safe HaskellNone
LanguageHaskell2010

Parser.Locations

Description

  • Locations.
Synopsis

Documentation

data Location Source #

Locations.

Instances

Instances details
Show Location Source # 
Instance details

Defined in Parser.Locations

Eq Location Source # 
Instance details

Defined in Parser.Locations

Ord Location Source # 
Instance details

Defined in Parser.Locations

data With_location t Source #

Add a location to any type.

Constructors

With_location Location t 

Instances

Instances details
Show t => Show (With_location t) Source # 
Instance details

Defined in Parser.Locations

init_location :: Location Source #

First line, first character.

next_char :: Location -> Location Source #

Move one character to the right.

next_line :: Location -> Location Source #

Move to the next line.

write_file_path_and_location :: File_path -> Location -> String Source #

Write the location with the file path.

write_location :: Location -> String Source #

Write the location.