Manasfi, Hassan (1999) An object-oriented parser generator for LL(1) grammars. Masters thesis, Concordia University.
Preview |
Text (application/pdf)
5MBMQ47849.pdf |
Abstract
In this thesis we investigate the use of Object-Oriented techniques to build both a parser and a parser generator for an LL(1) attributed grammars. When top-down parsing is being used, a node of the parse tree is expanded into several other nodes. Thinking in terms of objects, an object in the tree constructs other objects. An object, which is an instance of a class, on the tree corresponds to an instance of the corresponding symbol in a program. This means that each symbol in the language corresponds to a class or an instance of a class. So in order to parse a document and construct a parse tree for it, we begin by constructing the root of that tree by creating an object representing the nonterminal start symbol. The constructor of the root would in turn construct the subtrees of the root. The parsing approach is explained. The design and implementation of key parts of the parser are shown. Also the definition of the language's grammar which contains regular expressions and offer an easy notation to specify semantic actions is documented
Divisions: | Concordia University > Gina Cody School of Engineering and Computer Science > Computer Science and Software Engineering |
---|---|
Item Type: | Thesis (Masters) |
Authors: | Manasfi, Hassan |
Pagination: | ix, 166 leaves : ill. ; 29 cm. |
Institution: | Concordia University |
Degree Name: | M. Comp. Sc. |
Program: | Computer Science and Software Engineering |
Date: | 1999 |
Thesis Supervisor(s): | Grogono, Peter |
Identification Number: | QA 267.3 M36 1999 |
ID Code: | 946 |
Deposited By: | Concordia University Library |
Deposited On: | 27 Aug 2009 17:15 |
Last Modified: | 13 Jul 2020 19:48 |
Related URLs: |
Repository Staff Only: item control page