language-java-0.2.8: Java source manipulation

Safe HaskellNone
LanguageHaskell98

Language.Java.Parser

Synopsis

Documentation

type P = Parsec [L Token] () Source #

data ParseError :: * #

The abstract data type ParseError represents parse errors. It provides the source position (SourcePos) of the error and a list of error messages (Message). A ParseError can be returned by the function parse. ParseError is an instance of the Show and Eq classes.

class Parsable l where Source #

Minimal complete definition

toParser

Methods

toParser :: P (l -> a) -> P a Source #

Instances

Parsable Segment Source # 

Methods

toParser :: P (Segment -> a) -> P a Source #

fieldDecl :: Parsable l => P (Mod l (FieldDecl l)) Source #

methodDecl :: Parsable l => P (Mod l (MethodDecl l)) Source #

empty :: P () Source #

list :: P a -> P [a] Source #

list1 :: P a -> P [a] Source #

seplist :: P a -> P sep -> P [a] Source #

seplist1 :: P a -> P sep -> P [a] Source #

opt :: P a -> P (Maybe a) Source #

bopt :: P a -> P Bool Source #

lopt :: P [a] -> P [a] Source #

comma :: P () Source #

colon :: P () Source #