back

by matheusmoreira·7y ago·view on hn ↗
Metaprogramming. It's possible to generate source code and then evaluate it. For example: one can write a parser generator that compiles a grammar to a Javascript function definition that parses that grammar, which can then be evaluated from within Javascript in order to create the custom function.