Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Automating Grammar Comparison
 
conference paper

Automating Grammar Comparison

Kandhadai Madhavan, Ravichandhran  
•
Mayer, Mikaël
•
Gulwani, Sumit
Show more
2015
OOPSLA 2015: Proceedings of the 2015 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications
OOPSLA

We consider from a practical perspective the problem of checking equivalence of context-free grammars. We present techniques for proving equivalence, as well as techniques for finding counter-examples that establish non-equivalence. Among the key building blocks of our approach is a novel algorithm for efficiently enumerating and sampling words and parse trees from arbitrary context-free grammars; the algorithm supports polynomial time random access to words belonging to the grammar. Furthermore, we propose an algorithm for proving equivalence of context-free grammars that is complete for LL grammars, yet can be invoked on any context-free grammar, including ambiguous grammars. Our techniques successfully find discrepancies between different syntax specifications of several real-world languages, and are capable of detecting fine-grained incremental modifications performed on grammars. Our evaluation shows that our tool improves significantly on the existing available state of the art tools. In addition, we used these algorithms to develop an online tutoring system for grammars that we then used in an undergraduate course on computer language processing. On questions involving grammar constructions, our system was able to automatically evaluate the correctness of 95% of the solutions submitted by students: it disproved 74% of cases and proved 21% of them

  • Files
  • Details
  • Metrics
Type
conference paper
DOI
10.1145/2814270.2814304
Web of Science ID

WOS:000367256500011

Author(s)
Kandhadai Madhavan, Ravichandhran  
Mayer, Mikaël
Gulwani, Sumit
Kuncak, Viktor  orcid-logo
Date Issued

2015

Published in
OOPSLA 2015: Proceedings of the 2015 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications
Start page

183

End page

200

Subjects

Context-free grammars

•

equivalence

•

counterexamples

•

proof system

•

tutoring system

URL

URL

http://lara.epfl.ch/~kandhada/Automating-grammar-comparison.pdf
Editorial or Peer reviewed

REVIEWED

Written at

EPFL

EPFL units
LARA  
Event nameEvent placeEvent date
OOPSLA

Pittsburgh, PE

October 23-30, 2015

Available on Infoscience
November 26, 2015
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/120818
Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés