Script.NET - Metaprogramming Features

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:

    However much we may differ in the choice of the measures which should guide the administration of the government, there can be but little doubt in the minds of those who are really friendly to the republican features of our system that one of its most important securities consists in the separation of the legislative and executive powers at the same time that each is acknowledged to be supreme, in the will of the people constitutionally expressed.
    Andrew Jackson (1767–1845)