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

Displayed 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
40m
Talk
Grammar-based language modes for text editors
Curry On Talks
11:15
40m
Talk
Scalable cross-references across languages
Curry On Talks
Luke Zarko Google, Inc
12:05
40m
Talk
There are no BFT Fans Anymore... About Secure Eventual Consistency
Curry On Talks
Ali Shoker HASLab/INESC TEC & University of Minho