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:
“It is a tribute to the peculiar horror of contemporary life that it makes the worst features of earlier timesthe stupefaction of the masses, the obsessed and driven lives of the bourgeoisieseem attractive by comparison.”
—Christopher Lasch (b. 1932)