CSLE.CLS_Environment.Expr_Execute C# (CSharp) Method

Expr_Execute() public method

public Expr_Execute ( ICLS_Expression expr ) : CLS_Content.Value
expr ICLS_Expression
return CLS_Content.Value
        public CLS_Content.Value Expr_Execute(ICLS_Expression expr)
        {
            CLS_Content content = CreateContent();
            return expr.ComputeValue(content);
        }
        public CLS_Content.Value Expr_Execute(ICLS_Expression expr, CLS_Content content)

Same methods

CLS_Environment::Expr_Execute ( ICLS_Expression expr, CLS_Content content ) : CLS_Content.Value

Usage Example

Example #1
0
    public static void CSLightDoString(string code)
    {
        var c    = new CSLE.CLS_Content(env, false);
        int hash = code.GetHashCode();

        if (expcache.ContainsKey(hash))
        {
            env.Expr_Execute(expcache[hash], c);
            return;
        }
        var t = env.ParserToken(code);
        var e = env.Expr_CompilerToken(t);

        expcache[hash] = e;
        env.Expr_Execute(e, c);
    }
All Usage Examples Of CSLE.CLS_Environment::Expr_Execute