EYG is a scripting language designed to be embedded inside Erlang programs. Rather than running as a standalone runtime, it is distributed as a set of composable Erlang packages, allowing developers to add scripting capabilities directly to existing applications with explicit control over the scripting environment.
The toolkit includes a parser, an interpreter, and analysis components. A minimal integration requires only parsing EYG source from a string and executing the resulting expression. From there, developers can expose selected functions and capabilities, build restricted shells for predefined tasks, or provide business logic to automated agents while keeping access tightly scoped.
The primary audience is Erlang developers who need a safe, embeddable scripting layer. Typical use cases include letting end users run small queries or automations, creating internal developer shells with curated commands, and giving agents a controlled set of operations. It is not intended for general-purpose standalone scripting outside an Erlang host.
When adopting EYG, start with the pure-program example to verify parsing and execution, then incrementally add affordances such as pretty-printing or controlled host functions. Review what each script can access before exposing it to untrusted users, and keep the dependency set limited to the packages you actually need. Overall, EYG is a focused tool for Erlang teams that want scripting without sacrificing control.
评论与评分
0还没有评论,来写下第一条评价吧。