INNER CODE UNIT · C#

Program

endlesstravel/Love2dCS · convert_code_tool/Program.cs:10

    class Program
    {
        // void|bool   wrap_love_dll_xxxxxxxxxx(.......)
        static Regex firstRegex = new Regex(@"(\w+)\s+wrap_love_dll_(\w+)\(([^\)]*)\)", RegexOptions.Singleline);

        // (int **x, float d, Body** out_)
        static Regex paramsRegex = new Regex(@"(\s*(\(|,)\s*(\w+)\s*(\**)\s*(\w+))", RegexOptions.Singleline);

        //  wrap_love_dll_xxxxxxxxxx
        static Regex typeStructRegex = new Regex(@"^[a-zA-Z0-9](_)$", RegexOptions.Singleline);

        struct TypeStructDefine
        {
            public readonly bool isType;

            /// <summary>
            /// wrap_love_dll_type_Fixture_getPost -> Fixture
            /// wrap_love_dll_phyiscs_getPost -> phyiscs

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…