Simple and fast implementation of parsers in C#

RU / Day 1 / 17:15 / Track 2

Building parsers and lexers are time-consuming. One would need them when implementing various formal grammars, including domain-specific languages (DSLs). The most obvious choice among the available .NET tools is ANTLR parser generator.

In this talk, we will try to do without the latter. Karlen will walk you through an implementation of RFC 4515 (formerly RFC 2254), also known as LDAP search filters, in less than 100 lines of code using LINQ-like syntax using the Pidgin library. We will also benchmark the performance of the resulting parser and compare it with the alternatives.


Download presentation