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: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

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