Skip to main content

Towards a 2-Multiple Context-Free Grammar for the 3-Dimensional Dyck Language

  • Conference paper
  • First Online:
At the Intersection of Language, Logic, and Information (ESSLLI 2018)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 11667))

Included in the following conference series:

  • 337 Accesses

Abstract

We discuss the open problem of parsing the Dyck language of 3 symbols, \(D^3\), using a 2-Multiple Context-Free Grammar. We attempt to tackle this problem by implementing a number of novel meta-grammatical techniques and present the associated software packages we developed.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://github.com/omelkonian/dyck.

  2. 2.

    An avid reader will notice the use of the \(\mathcal {O}\) meta-rule in the ARIS algorithm.

  3. 3.

    https://oeis.org/A000108.

References

  1. Chatterjee, K., Choudhary, B., Pavlogiannis, A.: Optimal Dyck reachability for data-dependence and alias analysis. Proc. ACM Program. Lang. 2(POPL), 30 (2017)

    Article  Google Scholar 

  2. Gazdar, G.: Phrase structure grammar. In: Jacobson, P., Pullum, G.K. (eds.) The Nature of Syntactic Representation. Synthese Language Library (Texts and Studies in Linguistics and Philosophy), vol. 15, pp. 131–186. Springer, Dordrecht (1982). https://doi.org/10.1007/978-94-009-7707-5_5

    Chapter  Google Scholar 

  3. Gazdar, G., Klein, E., Pullum, G.K., Sag, I.A.: Generalized Phrase Structure Grammar. Harvard University Press, Cambridge (1985)

    Google Scholar 

  4. Kanazawa, M., Salvati, S.: MIX is not a tree-adjoining language. In: Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics: Long Papers-Volume 1. pp. 666–674. Association for Computational Linguistics (2012)

    Google Scholar 

  5. Kuperberg, G.: Spiders for rank 2 Lie algebras. Commun. Math. Phys. 180(1), 109–151 (1996)

    Article  MathSciNet  Google Scholar 

  6. Lewis, H.R., Papadimitriou, C.H.: Elements of the Theory of Computation. Prentice Hall PTR, New Jersey (1997)

    Google Scholar 

  7. Ljunglöf, P.: Practical parsing of parallel multiple context-free grammars. In: Workshop on Tree Adjoining Grammars and Related Formalisms, p. 144 (2012)

    Google Scholar 

  8. Moortgat, M.: A note on multidimensional Dyck languages. In: Casadio, C., Coecke, B., Moortgat, M., Scott, P. (eds.) Categories and Types in Logic, Language, and Physics. LNCS, vol. 8222, pp. 279–296. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-642-54789-8_16

    Chapter  Google Scholar 

  9. Nederhof, M.J., Shieber, S., Satta, G.: Partially ordered multiset context-free grammars and ID/LP parsing. Association for Computational Linguistics (2003)

    Google Scholar 

  10. Petersen, T.K., Pylyavskyy, P., Rhoades, B.: Promotion and cyclic sieving via webs. J. Algebr. Comb. 30(1), 19–41 (2009)

    Article  MathSciNet  Google Scholar 

  11. Reape, M.: Getting things in order. Discontinuous Const. 6, 209–253 (1996)

    Google Scholar 

  12. Reps, T.: Program analysis via graph reachability. Inf. Softw. Technol. 40(11–12), 701–726 (1998)

    Article  Google Scholar 

  13. Reps, T., Horwitz, S., Sagiv, M.: Precise interprocedural dataflow analysis via graph reachability. In: Proceedings of the 22nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages, pp. 49–61. ACM (1995)

    Google Scholar 

  14. Salvati, S.: MIX is a 2-MCFL and the word problem in \(Z^2\) is solved by a third-order collapsible pushdown automaton. J. Comput. Syst. Sci. 81(7), 1252–1277 (2015)

    Article  Google Scholar 

  15. Seki, H., Matsumura, T., Fujii, M., Kasami, T.: On multiple context-free grammars. Theor. Comput. Sci. 88(2), 191–229 (1991)

    Article  MathSciNet  Google Scholar 

  16. Wijngaarden, A.: The generative power of two-level grammars. In: Loeckx, J. (ed.) ICALP 1974. LNCS, vol. 14, pp. 9–16. Springer, Heidelberg (1974). https://doi.org/10.1007/978-3-662-21545-6_1

    Chapter  Google Scholar 

Download references

Acknowledgements

We would like to thank Michael Moortgat for introducing us to the problem, providing insightful feedback and motivating us throughout the process, as well as Jurriaan Hage for suggesting the use of multi-dimensional Dyck languages in static program analysis.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Orestis Melkonian .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer-Verlag GmbH Germany, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Kogkalidis, K., Melkonian, O. (2019). Towards a 2-Multiple Context-Free Grammar for the 3-Dimensional Dyck Language. In: Sikos, J., Pacuit, E. (eds) At the Intersection of Language, Logic, and Information. ESSLLI 2018. Lecture Notes in Computer Science(), vol 11667. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-59620-3_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-59620-3_5

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-59619-7

  • Online ISBN: 978-3-662-59620-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics