Doorgaan naar hoofdnavigatie Doorgaan naar zoeken Ga verder naar hoofdinhoud

Modular grammar specification

    Onderzoeksoutput: Bijdrage aan tijdschriftTijdschriftartikelAcademicpeer review

    5 Downloads (Pure)

    Samenvatting

    We establish a semantics for building grammars from a modularised specification in which modules are able to delete productions from imported nonterminals. Modules have import lists of nonterminals; some or all of an imported nonterminal's productions may be suppressed at import time. There are two basic import mechanisms which (a) reference or (b) clone an imported nonterminal's productions. One of our goals is to allow a precise answer to the question: ‘what character level language does this grammar generate’ in the face of difficult issues such as the mutual embedding of languages that have different whitespace and commenting conventions. Our technique is to automatically generate a character level grammar from grammars written at token level in the conventional way; the grammar is constructed from modules each of which may have its own whitespace convention. Keywords: Context free grammar; Modularity; Whitespace processing
    Originele taal-2Engels
    Pagina's (van-tot)23-43
    TijdschriftScience of Computer Programming
    Volume87
    DOI's
    StatusGepubliceerd - 2014

    Vingerafdruk

    Duik in de onderzoeksthema's van 'Modular grammar specification'. Samen vormen ze een unieke vingerafdruk.

    Citeer dit