Compiler.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLC
{
    class Compiler
    {
        public HashSet<char> SetOperator = new HashSet<char>()
        {
            '(',
            ')',
            '[',
            ']',
            '{',
            '}',
            ':',
            ';',
            ',',
            '+',
            '-',
            '*',
            '/',
            '%',
            '.',
            '\t',
            '\n',
            '=',
            '<',
            '>',
            '!',
            '~',
            '?',
            ' '
        };

        public HashSet<char> SetChar = new HashSet<char>()
        {
            '&',
            '$',
            '@'
        };

        public string Compile(string code)
        {
            List<string> results = new List<string>();
            string letter = "";
            for (int i = 0; i < code.Length; i++)
            {
                if (code[i] == '\"')
                {
                    for (int j = i + 1; j < code.Length; j++)
                    {
                        if (code[j] == '\"')
                        {
                            letter = code.Substring(i, j - i + 1);
                            results.Add(letter);
                            i = j;
后面还有 71 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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