In this tutorial I want to show how to use ANTLR to define API between FE, BE and DB to be able to store and process simple boolean expressions defined by the user on front-end.

Whole content with source-code could be found here https://github.com/bedla/expression-visitor-hierarchyid.