Write a Blog >>

In order to effectively edit code, you’ll want your editor to have some knowledge of the language you’re working with, so that it can at the very least highlight tokens and auto-indent. This has traditionally been done with editor-specific, usually regular expression-based formats, which have a tendency to be either too weak to express exotic syntactic features, or cumbersome to work with. This talk describes a system that uses Parser Expression Grammars to implement editor language modes, making it relatively easy to write modes for complicated grammars. Such grammars provide more information than traditional token-level mode definitions, so that features like by-expression or by-statement editing commands can be supported with little extra work. Additionally, the composability of PEG grammars is exploited to easily create grammars for mixed-language files (think HTML with JavaScript and CSS) and custom dialects.

Tue 20 Jun
Times are displayed in time zone: (GMT+02:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

10:25 - 12:45: Curry On Talks - Tuesday - 10:25 - 12:45 - Sala d'Actes at Sala d'Actes, Vertex Building
curryon-2017-papers10:25 - 11:05
curryon-2017-papers11:15 - 11:55
Luke ZarkoGoogle, Inc
curryon-2017-papers12:05 - 12:45
Ali ShokerHASLab/INESC TEC & University of Minho