liu.seSearch for publications in DiVA
Change search
ReferencesLink to record
Permanent link

Direct link
AID: An Alternative Implementation of DCGs
Linköping University, Department of Computer and Information Science, TCSLAB - Theoretical Computer Science Laboratory. Linköping University, The Institute of Technology.
1986 (English)In: New generation computing, ISSN 0288-3635, E-ISSN 1882-7055, Vol. 4, no 4, 383-399 p.Article in journal (Refereed) Published
Abstract [en]

This paper presents an alternative approach to implementation of DCGs. In contrast to the standard implementation we use the well-known bottom-up SLR(1)-parsing technique. An experimental system, AID, based on this technique is presented and discussed. The aim of this work is twofold. Firstly, we describe an alternative principle of implementation of DCGs, which makes it possible to cope with left-recursive DCGs and to avoid unnecessary backtracking when parsing. Secondly, we demonstrate that Prolog can be used for implementation of table driven parsers that generalize deterministic LR(k)-parsing techniques to the case of ambiguous grammars. The parsers generated by our system are deterministic whenever the submitted grammar is SLR(1). Otherwise the shift/reduce or reduce/reduce conflicts are stored in the generalized table and are used as Prolog backtrack points.

Place, publisher, year, edition, pages
Springer , 1986. Vol. 4, no 4, 383-399 p.
National Category
Computer Science
URN: urn:nbn:se:liu:diva-67130DOI: 10.1007/BF03037391OAI: diva2:407566
Available from: 2011-03-30 Created: 2011-03-30 Last updated: 2011-04-20

Open Access in DiVA

No full text

Other links

Publisher's full text

Search in DiVA

By author/editor
Nilsson, Ulf
By organisation
TCSLAB - Theoretical Computer Science LaboratoryThe Institute of Technology
In the same journal
New generation computing
Computer Science

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Altmetric score

Total: 180 hits
ReferencesLink to record
Permanent link

Direct link