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:
“The features of our face are hardly more than gestures which force of habit made permanent. Nature, like the destruction of Pompeii, like the metamorphosis of a nymph into a tree, has arrested us in an accustomed movement.”
—Marcel Proust (18711922)