happy-dot-1.0.0.0: Parser for dot made with happy.

LicenseGPL-3
MaintainerMarcelo Garlet Millani <marcelogmillani@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Language.Dot.Parser

Description

Parsing function and abstract syntax tree for the DOT language.

The parser is implemented using happy, and so is fairly fast.

Synopsis

Documentation

parse :: [Char] -> Either String (Bool, GraphType, Maybe Name, [Statement]) Source #

Parse a graph written in the DOT language.

data GraphType Source #

Constructors

Graph 
Digraph 
Instances
Eq GraphType Source # 
Instance details

Defined in Language.Dot.Graph

Show GraphType Source # 
Instance details

Defined in Language.Dot.Graph

data Name Source #

Constructors

StringID String 
XMLID String 
Instances
Eq Name Source # 
Instance details

Defined in Language.Dot.Graph

Methods

(==) :: Name -> Name -> Bool #

(/=) :: Name -> Name -> Bool #

Show Name Source # 
Instance details

Defined in Language.Dot.Graph

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

data Subgraph Source #

Instances
Eq Subgraph Source # 
Instance details

Defined in Language.Dot.Graph

Show Subgraph Source # 
Instance details

Defined in Language.Dot.Graph

data Port Source #

Constructors

Port (Maybe Name) (Maybe Compass) 
Instances
Eq Port Source # 
Instance details

Defined in Language.Dot.Graph

Methods

(==) :: Port -> Port -> Bool #

(/=) :: Port -> Port -> Bool #

Show Port Source # 
Instance details

Defined in Language.Dot.Graph

Methods

showsPrec :: Int -> Port -> ShowS #

show :: Port -> String #

showList :: [Port] -> ShowS #

data Compass Source #

Instances
Eq Compass Source # 
Instance details

Defined in Language.Dot.Graph

Methods

(==) :: Compass -> Compass -> Bool #

(/=) :: Compass -> Compass -> Bool #

Show Compass Source # 
Instance details

Defined in Language.Dot.Graph