Metaprogramming Features
Script.NET has a special quotation operator <> which returns AST of a given program. Additionally, the AST of the current program may be accessed with the prog object.
Here is an example:
//Create an AST for MessageBox.Show('Hello'); program ast = <>; //Add this AST at the end of the current program prog.AppendAst(ast);The <> operator and prog objects allow Script.NET to generate new scripts or modify existing scripts at runtime.
Read more about this topic: Script.NET
Famous quotes containing the word features:
“Each reader discovers for himself that, with respect to the simpler features of nature, succeeding poets have done little else than copy his similes.”
—Henry David Thoreau (18171862)