×

GRAMMAR COMPRESSION

  • US 20090327256A1
  • Filed: 06/26/2008
  • Published: 12/31/2009
  • Est. Priority Date: 06/26/2008
  • Status: Active Grant
First Claim
Patent Images

1. A method for compressing a grammar, the method comprising:

  • receiving a grammar, the grammar comprising a plurality of rules and the rules comprising a plurality of token classes;

    parsing the grammar to identify the plurality of rules within the grammar and the plurality of token classes within the plurality of rules;

    identifying, from the plurality of token classes, two or more unimportant token classes that are eligible for compression;

    analyzing the two or more unimportant classes to identify at least one subset of two or more unimportant token classes as a candidate subset for compression;

    merging the two or more unimportant token classes from the candidate subset to generate a merged token class; and

    substituting the merged token class in the grammar for the two or more unimportant token classes from the candidate subset to generate a compressed grammar.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×