Visual Prolog 7.2 Examples and DemosParser GeneratorWritten by Malcolm Bolton A parser is a program that is able to recognize the underlying structure in a source text. For example, a Pascal compiler uses a parser to recognize the if, while, repeat and case statements and the procedures, functions and expressions in a Pascal source file. Parsers are used not only with programming languages but also with command interpreters to interpret user input for various types of programs—expert system shells and natural-language interfaces, for example. a scanner (sometimes this is referred to as the lexical analyzer).
This Parser Generator is a program that generates a parser from the specification of a grammar. Thus, from a BNF-like
grammar, our parser generator produces a Prolog program capable of recognizing
sentences conforming to that grammar. The version of the Parcer Generator for Visual Prolog 5 was created by the Prolog Development Center (PDC). Download the project.NoteThe example requires Visual Prolog 7.2 Commercial Edition. If you use the Personal Edition, but need the features supported only in the Commercial Edition, you are welcome to order the latest build of this Edition just now: Order! Users of previous versions of Visual Prolog are welcome to upgrade to the current version of Visual Prolog to use the latest versions of the Visual Prolog examples.
Otherwise, it is possible to download the example version for Visual Prolog 7.1. |
|
|