A technique for automatically generating browsable language grammars. A
grammar specification is used to identify the structure of an input
grammar, so that a specification pre-processor, grammar parser and grammar
generator can work together to generate a marked up grammar that is a
browsable representation of the input grammar. The specification defines
how a terminal is represented, how a non-terminal is represented, how
production rules are represented, etc. Using the specification, the
specification pre-processor generates the grammar parser for subsequent
use with production rules found in the input grammar. When an actual set
of production rules in the input grammar are provided to the grammar
parser, it generates an intermediate form of the grammar that is then used
by the grammar generator to generate the browsable, marked up version of
the production rules.
Μια τεχνική για αυτόματα τις περιδιαβαστέες γλωσσικές γραμματικές. Μια προδιαγραφή γραμματικής χρησιμοποιείται για να προσδιορίσει τη δομή μιας γραμματικής εισαγωγής, έτσι ώστε pre-processor προδιαγραφών, ένας κατατμητής γραμματικής και μια γεννήτρια γραμματικής μπορούν να λειτουργήσουν μαζί για να παραγάγουν μια χαρακτηρισμένη επάνω γραμματική που είναι μια περιδιαβαστέα αντιπροσώπευση της γραμματικής εισαγωγής. Η προδιαγραφή καθορίζει πώς ένα τερματικό αντιπροσωπεύεται, πώς ένας μη τερματικός αντιπροσωπεύεται, πώς οι κανόνες παραγωγής αντιπροσωπεύονται, κ.λπ. που χρησιμοποιεί την προδιαγραφή, pre-processor προδιαγραφών παράγει τον κατατμητή γραμματικής για την επόμενη χρήση με τους κανόνες παραγωγής που βρίσκονται στη γραμματική εισαγωγής. Όταν ένα πραγματικό σύνολο κανόνων παραγωγής στη γραμματική εισαγωγής παρέχεται στον κατατμητή γραμματικής, παράγει μια ενδιάμεση μορφή της γραμματικής που χρησιμοποιείται έπειτα από τη γεννήτρια γραμματικής για να παραγάγει την περιδιαβαστέα, χαρακτηρισμένη επάνω έκδοση των κανόνων παραγωγής.