US20030191847A1

Symmetrical structural pattern matching

Claim Score by NHIP

Read claim 1, the broadest

Abstract

The invention provides a pattern matching technique based on the symmetrical construction of the code structures representing the matching expression and the filter to be matched. The method of the invention is for determining whether a computer-storable expression matches a filter. A first code structure representing the expression is evaluated for determining a value of the expression. A second code structure representing the filter is analyzed for determining the characteristics of the filter. Then, the value is filtered according to the filter characteristics. The first code structure is constructed from a plurality of first programming language code structure elements and the second code structure is constructed from a plurality of second programming language code structure elements. Each second structure element corresponds to one of the first structure elements. This symmetrical construction of both code structures enables an arbitrary level of structural complexity. The matching operation may be invoked explicitly.

US20030191847A1, drawing sheet 1
Sheet 1 of 62

Term

Term ended

Projected expiry passed 25 April 2024, 2.4 years ago.

  1. Priority and filed
  2. Published
  3. Projected expiry
  4. Today

17 claims: 3 independent, 14 dependent

  1. 1
    Broadest claimClaim Score 63, broad(NHIP)A method of operating a computer system for determining whether a computer-storable expression matches a filter, the method comprising the steps of:evaluating a first code structure representing the expression for determining a value of said expression;analyzing a second code structure representing the filter for determining the characteristics of the filter;and filtering said value according to the filter characteristics;wherein said first code structure is constructed from a plurality of first programming language code structure elements and said second code structure is constructed from a plurality of second programming language code structure elements;each second structure element corresponding to one of said first structure elements.
  2. 16
    An article of manufacture for use in a computer system comprising:a memory;instructions stored in the memory for operating a method for determining whether a computer-storable expression matches a filter, the method comprising the steps of: evaluating a first code structure representing the expression for determining a value of said expression;analyzing a second code structure representing the filter for determining the characteristics of the filter;and filtering said value according to the filter characteristics;wherein said first code structure is constructed from a plurality of first programming language code structure elements and said second code structure is constructed from a plurality of second programming language code structure elements;each second structure element corresponding to one of said first structure elements.
  3. 17
    A system for determining whether a computer storable expression matches a filter, the system comprising:a memory for storing the expression;and a processor for evaluating a first code structure representing the expression for determining a value of said expression, analyzing a second code structure representing the filter for determining the characteristics of the filter, and filtering said value according to the filter characteristics;wherein said first code structure is constructed from a plurality of first programming language code structure elements and said second code structure is constructed from a plurality of second programming language code structure elements;each second structure element corresponding to one of said first structure elements.