_Core/Lang/Plugins/Parser/FluentFuncPlugin.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using ComLib.Lang;
using ComLib.Lang.Helpers;

namespace ComLib.Lang.Extensions
{

    /* *************************************************************************
    <doc:example>	
    // Fluent Func plugins allows calling functions with spaces.
     
    
    // @summary: finds doctors based on the zip code provided and 
    // the specicality and accepted insurance
    // @arg: name: zip,       type: number, desc: The zipcode, examples: 11201
    // @arg: name: specialty, type: text,   desc: Specialization, examples: 'Familye'
    // @arg: name: insurance, type: text,   desc: Name of insurance, examples: 'empire'
    function find_doctors_by_zipcode ( zip, specialty, insurance )
    {
	    // ... some code here.
    }
    
    
    // @arg: name: product, desc: The product id,  type: text, examples: 'AS-1232'
    // @arg: name: amount,  desc: Number of items, type: text, examples: 23
    function refill_inventory( product, amount )
    {
        // ... some code here.
    }
    
    
    // Call functions replacing "_" with space - parameters are optional if function call
    // is on a single line.
    
    // Example 1:
    find doctors by zipcode 11200, 'family practice', 'empire insurance'
     
    // Example 2:
    refill inventory 'KL-131', 200
    
    </doc:example>
    ***************************************************************************/


    /// <summary>
    /// Combinator for handles method/function calls in a more fluent way.
    /// </summary>
    public class FluentFuncPlugin : ExprPlugin
    {
        private static string[] _tokens = new string[] { "$IdToken" };        


        /// <summary>
        /// Initialize.
        /// </summary>
        public FluentFuncPlugin()
后面还有 46 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。