Idris2Doc : Text.Molfile.Parser.Util

Text.Molfile.Parser.Util

(source)

Definitions

isos : ListIsotope
  Isotopes recognized directly by the parser.

In addition to the regular element symbols, this includes "D" and "T"
for deuterium and tritium.

Totality: total
Visibility: export
stringTillEOL : ByteString->String
  Converts the given byte string to a string, removing any trailing
end of line characters (`'\n'` and `'\r'`).

Totality: total
Visibility: export
coord : ByteString->Coordinate
Totality: total
Visibility: export
0ErrPair : Type
Totality: total
Visibility: public export
SPACE : Bits8
Totality: total
Visibility: public export
refineInt : CastIntegera=> (a->Maybeb) -> (a->MolErr) ->ByteString->EitherErrPairb
Totality: total
Visibility: export
blockcharge : ByteString->EitherErrPairCharge
Totality: total
Visibility: export
charge : ByteString->EitherErrPairCharge
Totality: total
Visibility: export
massNr : ByteString->EitherErrPairMassNr
Totality: total
Visibility: export
radical : ByteString->EitherErrPairRadical
Totality: total
Visibility: export
sgroupType : ByteString->SGroupType
Totality: total
Visibility: export
bondOrder : ByteString->EitherErrPairBondOrder
Totality: total
Visibility: export
bondStereo : ByteString->EitherErrPairBondStereo
Totality: total
Visibility: export
nat : ByteString->Nat
Totality: total
Visibility: export
node : ByteString->EitherErrPair (Fink)
Totality: total
Visibility: export
uedge : Fink->ByteString->EitherErrPair (Edgek ())
Totality: total
Visibility: export
setMass : MassNr->Isotope->Isotope
Totality: total
Visibility: export
groupLbl : SortedMapNatString->AtomGroup->AtomGroup
Totality: total
Visibility: export
lkpNode : SortedMapNat (Fink) ->ByteString->EitherErrPair (Fink)
Totality: total
Visibility: export
lkpEdge : SortedMapNat (Fink) ->Fink->ByteString->EitherErrPair (Edgek ())
Totality: total
Visibility: export
fill : Nat->String->ListString
  From a given string, generates a list of string by badding
it in all possible ways with spaces, so that each of them is
exactly `n` characters long.

For instance, `fill 3 "C"` will return `[" C", " C ", "C "]`.

Totality: total
Visibility: export
newline : RExpTrue
  Expressions we recognize as line breaks.

Note: To simplify things, we do currently not recognize a single
line feed character (`'\r'`) as a valid line break.

Totality: total
Visibility: export
sdigit : RExpTrue
  A space or a decimal digit.

Totality: total
Visibility: export
zeroes : RExpTrue
  An arbitrary number of spaces and zeroes, followed by a linebreak.

If we find this, it typically means we can stop interpreting a
line of data and fill in default values (for instance, with V2000
atom and bond definitions).

Totality: total
Visibility: export
spaces : RExpFalse
Totality: total
Visibility: export
m_end : RExpTrue
Totality: total
Visibility: public export
fail : CSTCKq=>ErrPair->F1'q
  Writes a custom error with proper bounds based on the given
`ByteString`.

The bounds are computed from the current position and the size
and offset of the bytestring, which is supposed to be a substring
of the one stored in the `bytes_` filed.

Totality: total
Visibility: export
failErr : CSTCKq=>ErrPair->F1qCST
  Convenience alias for `fail p >> pure CErr`.

Totality: total
Visibility: export
h3 : CSTCKq=>ByteString->F1qCST
Totality: total
Visibility: export
h2 : CSTCKq=>ByteString->F1qCST
Totality: total
Visibility: export
h1 : CSTCKq=>ByteString->F1qCST
Totality: total
Visibility: export
modAtom : CSTCKq=> (MolAtom->MolAtom) ->F1'q
  Modifies the current atom in the mol graph

Totality: total
Visibility: export
modBond : CSTCKq=> (MolBond->MolBond) ->F1'q
  Modifies the current atom in the mol graph

Totality: total
Visibility: export
inc : CSTCKq=>Nat->F1qNat
  Returns the current position in the bytestring
and increases it by the given number of bytes.

Totality: total
Visibility: export
read : CSTCKq=> (ByteString->a) ->Nat->F1qa
  Converts the next `len` bytes of the recognized byte string
using the given convertion function.

Totality: total
Visibility: export
remString : CSTCKq=>F1qString
  Converts the remainder of the recognized byte string to a `String`,
trimming any newline characters from its end.

Totality: total
Visibility: export
end : CSTCKq=>F1'q
  Finalizes the current molecule

Totality: total
Visibility: export
setIso : CST->Isotope->Step1qCSzCSTCK
  Sets the isotope of the current atom

Totality: total
Visibility: export
sdata : StepsqCSzCSTCK
  Transition steps for structure data header entries.

Totality: total
Visibility: export
sdvalue : StepsqCSzCSTCK
  Transition steps for structure data value entries.

Totality: total
Visibility: export