Back to results

University of North Texas

The Design and Implementation of a Prolog Parser Using Javacc

Abstract

dc:description

Operatorless Prolog text is LL(1) in nature and any standard LL parser generator tool can be used to parse it. However, the Prolog text that conforms to the ISO Prolog standard allows the definition of dynamic operators. Since Prolog operators can be defined at run-time, operator symbols are not present in the grammar rules of the language. Unless the parser generator allows for some flexibility in the specification of the grammar rules, it is very difficult to generate a parser for such text. In this thesis we discuss the existing parsing methods and their modified versions to parse languages with dynamic operator capabilities. Implementation details of a parser using Javacc as a parser generator tool to parse standard Prolog text is provided. The output of the parser is an “Abstract Syntax Tree” that reflects the correct precedence and associativity rules among the various operators (static and dynamic) of the language. Empirical results are provided that show that a Prolog parser that is generated by the parser generator like Javacc is comparable in efficiency to a hand-coded parser.

Degree

thesis:*
Grantor dc:publisher
University of North Texas
Year dc:date
2002

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gupta, Pankaj
Contributors dc:contributor
  • Tarau, Paul
  • Mikler, Armin R.
  • Jacob, Roy T.

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • Public
  • Copyright
  • Gupta, Pankaj
  • Copyright is held by the author, unless otherwise noted. All rights reserved.
Language dc:language
English

Identifiers

dc:identifier.*
Identifier
oclc: 50677135
https://digital.library.unt.edu/ark:/67531/metadc3251/
ark: ark:/67531/metadc3251
OAI identifier oai:identifier
info:ark/67531/metadc3251

Chain of custody

source
Harvested from
University of North Texas
Base URL
digital.library.unt.edu/oai/
Last updated
2026-07-24
Source record
OAI-PMH GetRecord
citation

Gupta, Pankaj. The Design and Implementation of a Prolog Parser Using Javacc. University of North Texas, 2002. https://doi.org/10.12794/metadc3251