示例#1
0
        private void CreateLookupItems()
        {
            LookupItems.MakeFunctor("push", scope => PushCommand((CallScope)scope), SymbolKindEnum.PRECOMMAND);
            LookupItems.MakeFunctor("pop", scope => PopCommand((CallScope)scope), SymbolKindEnum.PRECOMMAND);

            LookupItems.MakeOptionFunctors(Options);
            LookupItems.MakeOptionHandlers(Options);
        }
示例#2
0
 private void CreateLookupItems()
 {
     LookupItems.MakeFunctor("account", scope => FnAccount((CallScope)scope));
     LookupItems.MakeFunctor("lot_price", scope => FnLotPrice((CallScope)scope));
     LookupItems.MakeFunctor("lot_date", scope => FnLotDate((CallScope)scope));
     LookupItems.MakeFunctor("lot_tag", scope => FnLotTag((CallScope)scope));
     LookupItems.MakeFunctor("int", scope => FnInt((CallScope)scope));
     LookupItems.MakeFunctor("min", scope => FnMin((CallScope)scope));
     LookupItems.MakeFunctor("max", scope => FnMax((CallScope)scope));
     LookupItems.MakeFunctor("str", scope => FnStr((CallScope)scope));
     // Check if they are trying to access an option's setting or value.
     LookupItems.MakeOptionFunctors(Options);
     LookupItems.MakeOptionHandlers(Options);
 }