How to build a user-filtered DSL using Antlr
Today, I will talk to you about how to use Antlr to build a user-filtered DSL. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
With the development of our business, we will accumulate more and more users. In order to market, mine, or count users more accurately, we will mark users. Marking can include many dimensions, such as:
Basic information: including age, gender, etc.
Order information: for example, the time of the first order, the order quantity in the last 30 days, the order quantity in the last 7 days, etc.
Coupon information: the number of times the coupon has been used in the last 7 days
With these user tags, we can filter users, create groups, and then do some targeted marketing activities for people, such as:
Urumqi low frequency-full send: (resident city = = Urumqi) and (nearly 7 days singular > 0) and (nearly 7 days singular 0) and (nearly 7 days singular)