{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,30]],"date-time":"2026-11-30T21:07:36Z","timestamp":1796072856330,"version":"4.11.3"},"reference-count":35,"publisher":"Centre pour la Communication Scientifique Directe (CCSD)","license":[{"start":{"date-parts":[[2011,6,24]],"date-time":"2011-06-24T00:00:00Z","timestamp":1308873600000},"content-version":"am","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"},{"start":{"date-parts":[[2011,6,24]],"date-time":"2011-06-24T00:00:00Z","timestamp":1308873600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"},{"start":{"date-parts":[[2011,6,24]],"date-time":"2011-06-24T00:00:00Z","timestamp":1308873600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2015,6,25]]},"abstract":"<jats:p>Parsing is an important problem in computer science and yet surprisingly little attention has been devoted to its formal verification. In this paper, we present TRX: a parser interpreter formally developed in the proof assistant Coq, capable of producing formally correct parsers. We are using parsing expression grammars (PEGs), a formalism essentially representing recursive descent parsing, which we consider an attractive alternative to context-free grammars (CFGs). From this formalization we can extract a parser for an arbitrary PEG grammar with the warranty of total correctness, i.e., the resulting parser is terminating and correct with respect to its grammar and the semantics of PEGs; both properties formally proven in Coq.<\/jats:p>","DOI":"10.2168\/lmcs-7(2:18)2011","type":"journal-article","created":{"date-parts":[[2011,9,23]],"date-time":"2011-09-23T08:17:26Z","timestamp":1316765846000},"source":"Crossref","is-referenced-by-count":12,"title":["TRX: A Formally Verified Parser Interpreter"],"prefix":"10.46298","volume":"Volume 7, Issue 2","author":[{"given":"Adam","family":"Koprowski","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Henri","family":"Binsztok","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"25203","published-online":{"date-parts":[[2011,6,24]]},"reference":[{"key":"10.2168\/LMCS-7(2:18)2011_Agda","unstructured":"The Agda wiki. http:\/\/wiki.portal.chalmers.se\/agda\/"},{"key":"10.2168\/LMCS-7(2:18)2011_AhoEA86","unstructured":"Alfred V. Aho, Ravi Sethi, and Jeffrey D. Ullman.\n                      Compilers: Principles, Techniques, and Tools\n                      . Addison-Wesley, 1986."},{"key":"10.2168\/LMCS-7(2:18)2011_AhoUll72","unstructured":"Alfred V. Aho and Jeffrey D. Ullman.\n                      The Theory of Parsing, Translation and Compiling - Vol. I: Parsing\n                      . Prentice Hall, 1972."},{"key":"10.2168\/LMCS-7(2:18)2011_BerCas04","doi-asserted-by":"crossref","unstructured":"Yves Bertot and Pierre Cast\u00e9ran.\n                      Interactive Theorem Proving and Program Development. Coq'Art: The Calculus of Inductive Constructions\n                      . Texts in Theoretical Computer Science. Springer Verlag, 2004.","DOI":"10.1007\/978-3-662-07964-5"},{"key":"10.2168\/LMCS-7(2:18)2011_BarNor09","doi-asserted-by":"crossref","unstructured":"Aditi Barthwal and Michael Norrish. Verified, executable parsing. In\n                      Programming Languages and Systems, 18th European Symposium on Programming (ESOP '09)\n                      , volume 5502 of\n                      Lecture Notes in Computer Science\n                      , pages 160-174, 2009.","DOI":"10.1007\/978-3-642-00590-9_12"},{"key":"10.2168\/LMCS-7(2:18)2011_Bur75","unstructured":"William H. Burge.\n                      Recursive Programming Techniques\n                      . Addison-Wesley, 1975."},{"issue":"1","key":"10.2168\/LMCS-7(2:18)2011_CruLet06","doi-asserted-by":"crossref","first-page":"75","DOI":"10.1016\/j.entcs.2005.11.024","volume":"151","author":"Lu\u00eds Cruz-Filipe and Pierre Letouzey","year":"2006","journal-title":"Electronic Notes in Theoretical Computer Science 151(1):75-91, 2006"},{"key":"10.2168\/LMCS-7(2:18)2011_Chl09","unstructured":"Adam Chlipala.\n                      Certified Programming with Dependent Types\n                      . 2009. Available from http:\/\/adam.chlipala.net\/cpdt\/."},{"key":"10.2168\/LMCS-7(2:18)2011_Chr03","doi-asserted-by":"publisher","DOI":"10.1007\/10930755_18"},{"key":"10.2168\/LMCS-7(2:18)2011_Coq","doi-asserted-by":"crossref","unstructured":"The Coq proof assistant: Reference manual, version 8.2. http:\/\/coq.inria.fr. Nils Anders Danielsson. Total parser combinators. In\n                      Proceedings of the 15th ACM SIGPLAN International Conference on Functional programming (ICFP 2010)\n                      , pages 285-296, 2010.","DOI":"10.1145\/1863543.1863585"},{"key":"10.2168\/LMCS-7(2:18)2011_DanNor08","unstructured":"Nils Anders Danielsson and Ulf Norell. Structurally recursive descent parsing, 2008. Draft. http:\/\/www.cs.nott.ac.uk\/ nad\/publications."},{"key":"10.2168\/LMCS-7(2:18)2011_aurochs","unstructured":"Berke Durak. Aurochs. http:\/\/aurochs.fr\/, 2009."},{"key":"10.2168\/LMCS-7(2:18)2011_FilLet04","doi-asserted-by":"crossref","unstructured":"Jean-Christophe Filliatre and Pierre Letouzey. Functors for proofs and programs. In\n                      Programming Languages and Systems, 13th European Symposium on Programming (ESOP '04)\n                      , volume 2986 of\n                      Lecture Notes in Computer Science\n                      , pages 370-384, 2004.","DOI":"10.1007\/978-3-540-24725-8_26"},{"key":"10.2168\/LMCS-7(2:18)2011_For02mth","doi-asserted-by":"crossref","unstructured":"Bryan Ford. Packrat parsing: a practical linear-time algorithm with backtracking. Master's thesis, Massachusetts Institute of Technology, 2002.","DOI":"10.1145\/581478.581483"},{"key":"10.2168\/LMCS-7(2:18)2011_For02","doi-asserted-by":"publisher","DOI":"10.1145\/581478.581483"},{"key":"10.2168\/LMCS-7(2:18)2011_For04","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964011"},{"issue":"3","key":"10.2168\/LMCS-7(2:18)2011_Hut92","doi-asserted-by":"crossref","first-page":"323","DOI":"10.1017\/S0956796800000411","volume":"2","author":"Graham Hutton","year":"1992","journal-title":"The Journal of Functional Programming"},{"key":"10.2168\/LMCS-7(2:18)2011_JavaParser","unstructured":"JavaParser project. http:\/\/code.google.com\/p\/javaparser\/.\n                      Java Compiler Compiler (JavaCC) - The Java Parser Generator\n                      . JAXP: Java for xml processing. https:\/\/jaxp.dev.java.net\/."},{"key":"10.2168\/LMCS-7(2:18)2011_KopBin10esop","doi-asserted-by":"crossref","unstructured":"Adam Koprowski and Henri Binsztok. TRX: A formally verified parser interpreter. In\n                      Proceedings of the 19th European Symposium on Programming (ESOP '10)\n                      , volume 6012 of\n                      Lecture Notes in Computer Science\n                      , pages 345-365, 2010.","DOI":"10.1007\/978-3-642-11957-6_19"},{"key":"10.2168\/LMCS-7(2:18)2011_ocaml","unstructured":"Xavier Leroy et al. Objective caml. http:\/\/caml.inria.fr, 1996."},{"issue":"7","key":"10.2168\/LMCS-7(2:18)2011_Ler09","doi-asserted-by":"crossref","first-page":"107","DOI":"10.1145\/1538788.1538814","volume":"52","author":"Xavier Leroy","year":"2009","journal-title":"Communications of the ACM"},{"key":"10.2168\/LMCS-7(2:18)2011_Let08","unstructured":"Pierre Letouzey. Extraction in Coq: An overview. In\n                      Logic and Theory of Algorithms, 4th Conference on Computability in Europe (CiE '08)\n                      , volume 5028 of\n                      Lecture Notes in Computer Science\n                      , 2008."},{"key":"10.2168\/LMCS-7(2:18)2011_lexyacc","unstructured":"John R. Levine, Tony Mason, and Doug Brown.\n                      Lex & yacc\n                      . O'Reilly, 1992."},{"key":"10.2168\/LMCS-7(2:18)2011_BriKin02","unstructured":"Conor McBride and James McKinna. Seeing and doing, 2002. Presentation at the Workshop on Termination and Type Theory."},{"key":"10.2168\/LMCS-7(2:18)2011_haskell","unstructured":"Simon Peyton-Jones et al. Haskell 98 language and libraries: The revised report, 2002. http:\/\/haskell.org\/."},{"key":"10.2168\/LMCS-7(2:18)2011_ParQuo94","doi-asserted-by":"crossref","unstructured":"Terence John Parr and Russell W. Quong. Adding semantic and syntactic predicates to LL(k): pred-LL(k). In\n                      5th International Conference on Compiler Construction (CC'94)\n                      , volume 786 of\n                      Lecture Notes in Computer Science\n                      , pages 263-277, 1994.","DOI":"10.1007\/3-540-57877-3_18"},{"issue":"3-4","key":"10.2168\/LMCS-7(2:18)2011_Red07","first-page":"513","volume":"79","author":"Roman R. Redziejowski","year":"2007","journal-title":"Fundamenta Informaticae"},{"key":"10.2168\/LMCS-7(2:18)2011_Mouse","unstructured":"Roman Redziejowski. Mouse: from parsing expressions to a practical parser. In\n                      Workshop on Concurrency, Specification, and Programming (CS&P '09)\n                      , pages 514-525, 2009. http:\/\/www.romanredz.se\/freesoft.cont.htm#mouse."},{"key":"10.2168\/LMCS-7(2:18)2011_OPA","unstructured":"David Rajchenbach-Teller and Francois-R\u00e9gis Sinot. OPA: Language support for a sane, safe and secure web. In\n                      Proceedings of the OWASP AppSec Research 2010\n                      . To appear."},{"issue":"4","key":"10.2168\/LMCS-7(2:18)2011_SusSte98","doi-asserted-by":"crossref","first-page":"405","DOI":"10.1023\/A:1010035624696","volume":"11","author":"Gerald J. Sussman and Guy L. Steele Jr","year":"1998","journal-title":"Higher-Order and Symbolic Computation"},{"key":"10.2168\/LMCS-7(2:18)2011_SozOur08","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-71067-7_23"},{"key":"10.2168\/LMCS-7(2:18)2011_Soz07","doi-asserted-by":"publisher","DOI":"10.1145\/1291151.1291156"},{"key":"10.2168\/LMCS-7(2:18)2011_XMark","doi-asserted-by":"crossref","unstructured":"Albrecht Schmidt, Florian Waas, Martin L. Kersten, Michael J. Carey, Ioana Manolescu, and Ralph Busse. XMark: A benchmark for XML data management. In\n                      Proceedings of 28th International Conference on Very Large Data Bases (VLDB '02)\n                      , pages 974-985, 2002. http:\/\/www.xml-benchmark.org\/.","DOI":"10.1016\/B978-155860869-6\/50096-2"},{"key":"10.2168\/LMCS-7(2:18)2011_WarEA08","doi-asserted-by":"publisher","DOI":"10.1145\/1328408.1328424"},{"key":"10.2168\/LMCS-7(2:18)2011_WisEA","unstructured":"Ryan Wisnesky, Gregory Malecha, and Greg Morrisett. Certified web services in Ynot. In\n                      Proceedings of WWV'09\n                      , pages 5-19, 2009."}],"container-title":["Logical Methods in Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/arxiv.org\/pdf\/1105.2576v2","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/arxiv.org\/pdf\/1105.2576v2","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,11,30]],"date-time":"2026-11-30T20:23:57Z","timestamp":1796070237000},"score":1,"resource":{"primary":{"URL":"http:\/\/lmcs.episciences.org\/686"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2011,6,24]]},"references-count":35,"URL":"https:\/\/doi.org\/10.2168\/lmcs-7(2:18)2011","relation":{"is-same-as":[{"id-type":"arxiv","id":"1105.2576","asserted-by":"subject"},{"id-type":"doi","id":"10.48550\/arXiv.1105.2576","asserted-by":"subject"}]},"ISSN":["1860-5974"],"issn-type":[{"value":"1860-5974","type":"electronic"}],"subject":[],"published":{"date-parts":[[2011,6,24]]},"article-number":"686"}}