public LuaCompilationUnitSyntax(string filePath = "")
        {
            FilePath = filePath;
            var info = Assembly.GetExecutingAssembly().GetName();
            LuaShortCommentStatement versonStatement = new LuaShortCommentStatement($" Generated by {info.Name} Compiler");

            AddStatement(versonStatement);

            var system = LuaIdentifierNameSyntax.System;

            AddImport(system, system);
        }
예제 #2
0
        public LuaCompilationUnitSyntax()
        {
            var info = Assembly.GetExecutingAssembly().GetName();
            LuaShortCommentStatement versonStatement = new LuaShortCommentStatement($" Generated by {info.Name} Compiler {info.Version}");

            HeadAreaStatements.Statements.Add(versonStatement);

            var system = LuaIdentifierNameSyntax.System;

            AddImport(system, system);
            Statements.Add(HeadAreaStatements);
        }