jfun.parsec
Interface ToParser<From,To>

All Superinterfaces:
java.io.Serializable

public interface ToParser<From,To>
extends java.io.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

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

Parameters:
v - the value.
Returns:
the new Parser.