penntreebank-megaparsec-0.1.0: Parser combinators for trees in the Penn Treebank format

Copyright(c) 2020 Nori Hayashi
LicenseBSD3
MaintainerNori Hayashi <net@hayashi-lin.net>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.Tree.Parser.Penn.Megaparsec.Internal

Description

Language : Haskell2010

Synopsis

Documentation

class Stream str => ParsableAsTerm str term where Source #

A type class for node label types term data of which can be obtained by parsing a stream of type str.

Methods

pNonTerm :: Ord err => ParsecT err str m term Source #

A parser that extracts exactly one token of the node label type term from an input stream of type str.

pTerm :: Ord err => ParsecT err str m term Source #

Instances
(Stream str, Tokens str ~ term) => ParsableAsTerm str term Source # 
Instance details

Defined in Data.Tree.Parser.Penn.Megaparsec.Internal

Methods

pNonTerm :: Ord err => ParsecT err str m term Source #

pTerm :: Ord err => ParsecT err str m term Source #