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:

    “It looks as if
    Some pallid thing had squashed its features flat
    And its eyes shut with overeagerness
    To see what people found so interesting
    In one another, and had gone to sleep
    Of its own stupid lack of understanding,
    Or broken its white neck of mushroom stuff
    Short off, and died against the windowpane.”
    Robert Frost (1874–1963)