×

Methods and system for converting a text-based grammar to a compressed syntax diagram

  • US 5,678,052 A
  • Filed: 01/19/1995
  • Issued: 10/14/1997
  • Est. Priority Date: 01/19/1995
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for converting a text-based grammar to a compressed syntax diagram using a programmed computer having a memory and an output means, said text-based grammar having a plurality of grammar rules therein and having at least one non-terminal symbol defined by a grammar rule of said plurality of grammar rules, said compressed syntax diagram having a syntax fragment, said method comprising the steps of:

  • (a) determining for a selected grammar rule of the plurality of grammar rules within said text-based grammar, a space required within said syntax fragment of said compressed syntax diagram for said selected grammar rule;

    (b) accumulating a total space required within said syntax fragment by adding thereto said space required from said step (a), and storing said total space required in said memory of said programmed computer;

    (c) if said selected grammar rule of said step (a) includes a non-terminal symbol, using as said selected grammar rule a grammar rule within said text-based grammar which defines said non-terminal symbol and repeating said steps (a), (b) and (c), said repeating being performed provided said total space required does not exceed a predetermined space available on said output means for said syntax fragment of said compressed syntax diagram, said predetermined space being sufficient for at least two grammar rules of said plurality of grammar rules to be accommodated within said syntax fragment of said compressed syntax diagram; and

    (d) establishing said compressed syntax diagram based upon each selected grammar rule of said step (a), wherein said syntax fragment of said compressed syntax diagram contains data representative of multiple grammar rules of said plurality of grammar rules.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×