Writing Predicate Parser For Search in C# with Antlr 4 – Part Two
Continuing from the previous part, where we’ve written and tested our parser using Antlr 4 – let’s now generate a C#
parser, and hook it up to search an elasticsearch
index.
Continuing from the previous part, where we’ve written and tested our parser using Antlr 4 – let’s now generate a C#
parser, and hook it up to search an elasticsearch
index.
For some products, having your own language that your customers can use to be productive, or make your product that much more powerful, is a Domain Specific Language. Think Atlassian’s Jira Query Language, Github’s filter feature etc.
There are times when we want to be able to consistently add a behaviour across our ASP.NET Core
app that doesn’t quite belong in application logic – a classic example is timing how long a request takes. This is where Filters come in (or Middleware, but that’s for another post).