1. A computer-programming language for programming a computer for pattern matching, the programming language comprising: a first pattern defined in an object-oriented programming language, wherein the first pattern is a structured literal that is capable of matching a value contained in an incoming data stream.