{Parsing complex data formats in Lua\TeX\ with \acro{LPEG}} {Henri Menke} {Although it is possible to read external files in \TeX, extracting information from them is rather difficult. Ad-hoc solutions tend to use nested if statement or regular expressions provided by several macro packages. However, these quick hacks don't scale well and quickly become unmaintainable. Lua\TeX\ comes to the rescue with its embedded \acro{LPEG} library for Lua. \acro{LPEG} provides a Domain Specific Embedded Language (\acro{DSEL}) that allows to write grammars in a natural way. In this talk I will give a quick introducing to Parsing Expression Grammars (\acro{PEG}) and then show how to write simple parsers in Lua with \acro{LPEG}. Finally we will build a \acro{JSON} parser to demonstrate how easy it is to even parse complex data formats.}