jfun.parsec

Interface ToParser<From,To>

public interface ToParser<From,To> extends Serializable

Maps an Object to a Parser. User code implements this interface to call Parsers.bind().

a -> Parser b.

Author: Ben Yu 2004-11-11

Method Summary
Parser<To>toParser(From v)
maps v to a Parser.

Method Detail

toParser

public Parser<To> toParser(From v)
maps v to a Parser.

Parameters: v the value.

Returns: the new Parser.