_Core/Lang/Plugins/Parser/EnablePlugin.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComLib.Lang;
namespace ComLib.Lang.Extensions
{
/* *************************************************************************
<doc:example>
// Enables the units components that are built into the system.
// These include
//
// Abbr: Name:
// in inch
// in inches
// ft foot
// ft feet
// yd yard
// yd yards
// mi mile
// mi miles
//
// B bytes
// kb kilobyte
// kb kilobytes
// mb megabyte
// mb megabytes
// gig gigabyte
// gigs gigabytes
//
// oz ounces
// lb pound
// lbs pounds
// tn ton
// tn tons
// mg milligram
// mg milligrams
// g gram
// g grams
// kg kilogram
// kg kilograms
// t tonne
// t tonnes
enable units;
var result = 3 inches + 5 feet + 2 yards + 1 mile;
</doc:example>
***************************************************************************/
/// <summary>
/// Combinator for enabling and disabling the
/// </summary>
public class EnablePlugin : ExprPlugin
{
private static string[] _tokens = new string[] { "enable", "disable" };
private static Dictionary<string, bool> _components;
后面还有 60 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
