Tag

GoYACC

1 views collected around this technical thread.

IEG Growth Platform Technology Team
IEG Growth Platform Technology Team
Jan 3, 2022 · Backend Development

Building a Simple Rule Engine with Go's AST and Parser

This article explains how to design a lightweight rule engine in Go by first using JSON‑defined rules, then leveraging Go's token scanner and AST parser to evaluate boolean expressions such as header and cookie checks, and finally discusses extending the engine with custom primitives and GoYACC for more complex grammars.

ASTDSLGo
0 likes · 16 min read
Building a Simple Rule Engine with Go's AST and Parser