morley-1.16.3: Developer tools for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

Morley.Michelson.Parser.Annotations

Synopsis

Documentation

note :: forall tag le. KnownAnnTag tag => Parser le (Annotation tag) Source #

General TVF Annotation parser, including Special Annotations

notesVVFF :: Parser le ((VarAnn, VarAnn), (FieldAnn, FieldAnn)) Source #

Parse 012 var anns and 012 field anns. It doesn't matter which come first, so long as annotations of the same type appear together.

E.g.:

  • "" is valid
  • "%a" is valid
  • "%a @c" is valid
  • "%a %b c d" is valid
  • "c d %a %b" is valid
  • "c %a %b d" is not valid, because the two var anns are not "grouped" together.
  • "%a c d %b" is not valid, because the two fields anns are not "grouped" together.

fieldType :: Default a => Parser le a -> Parser le (a, TypeAnn) Source #

permute2Def :: (Default a, Default b, Monad f, Alternative f) => f a -> f b -> f (a, b) Source #

permute3Def :: (Default a, Default b, Default c, Monad f, Alternative f) => f a -> f b -> f c -> f (a, b, c) Source #