ply-loader-0.4: PLY file loader.

Safe HaskellNone
LanguageHaskell2010

PLY.Internal.Parsers

Contents

Synopsis

Documentation

skip :: Parser () Source

Skip white space, comments, and obj_info lines.

format :: Parser Format Source

Parse a PLY file format line

Numeric type parsers

line :: Parser ByteString Source

Take everything up to the end of the line

word :: Parser ByteString Source

Take the next white space-delimited word.

parseList :: ScalarT -> Parser [Scalar] Source

Parse a monotyped list of values. All returned Scalar values will be of the type corresponding to the specific ScalarT given.

multiProps :: [Property] -> Parser [Scalar] Source

Parse a flat property list

header :: Parser (Format, [Element]) Source

Parse a PLY header.

parseSkip :: Parser a -> ByteString -> ByteString Source

Advance a ByteString to where a given Parser finishes. An error is raised if the parser fails to complete.