8
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Speeding up Generalized PSR Parsers by Memoization Techniques

      Preprint

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          Predictive shift-reduce (PSR) parsing for hyperedge replacement (HR) grammars is very efficient, but restricted to a subclass of unambiguous HR grammars. To overcome this restriction, we have recently extended PSR parsing to generalized PSR (GPSR) parsing along the lines of Tomita-style generalized LR parsing. Unfortunately, GPSR parsers turned out to be too inefficient without manual tuning. This paper proposes to use memoization techniques to speed up GPSR parsers without any need of manual tuning, and which has been realized within the graph parser distiller Grappa. We present running time measurements for some example languages; they show a significant speed up by some orders of magnitude when parsing valid graphs. But memoization techniques do not help when parsing invalid graphs or if all parses of an ambiguous input graph shall be determined.

          Related collections

          Author and article information

          Journal
          19 December 2019
          Article
          10.4204/EPTCS.309.4
          1912.09609
          56861da2-23d9-4d5b-a77f-8ca5a2198377

          http://arxiv.org/licenses/nonexclusive-distrib/1.0/

          History
          Custom metadata
          EPTCS 309, 2019, pp. 71-86
          In Proceedings GCM 2019, arXiv:1912.08966
          cs.FL cs.PF
          EPTCS

          Theoretical computer science,Performance, Systems & Control
          Theoretical computer science, Performance, Systems & Control

          Comments

          Comment on this article

          scite_
          4
          0
          6
          0
          Smart Citations
          4
          0
          6
          0
          Citing PublicationsSupportingMentioningContrasting
          View Citations

          See how this article has been cited at scite.ai

          scite shows how a scientific paper has been cited by providing the context of the citation, a classification describing whether it supports, mentions, or contrasts the cited claim, and a label indicating in which section the citation was made.

          Similar content365