简体   繁体   English

那是一种什么样的语言?

[英]what kind of language is that?

I received a piece of code but I cannot understand what kind of language it is.我收到了一段代码,但我无法理解它是哪种语言。 It looks like C# but C# uses the "using" clause in order to import a library where on this programming language file it uses a "use" clause.它看起来像 C#,但 C# 使用“using”子句来导入库,在此编程语言文件中它使用“use”子句。 I cannot find any information about the "use" clause and I am actually confused because this programming language looks like C#/Java/Visual Basic but on these languages I cannot find the use of the "use" clause.我找不到有关“use”子句的任何信息,实际上我很困惑,因为这种编程语言看起来像 C#/Java/Visual Basic,但在这些语言中,我找不到“use”子句的用法。 The weird thing is that the code doesn't use any methods and the file I received had a .txt extension.奇怪的是代码没有使用任何方法,我收到的文件有一个 .txt 扩展名。

the file starts like that:该文件是这样开始的:

use Collection, File, Stream, String, System;
use Date;
include globals.routines.global_routines_generic;
include globals.routines.global_routines_mcc;
include globals.routines.global_classifier;

after that they declare a bunch of variables with the "var" clause and then a part of code looks like that:之后,他们用“var”子句声明了一堆变量,然后一部分代码如下所示:

File.createFolder(settings.path_files);

foreach(i, Folder in Folders) {
    if (dlc.allfolders || String.contains(Folder, dlc.specific_folder)) {
        Bestanden       = File.iterateFiles(Folder.path, true);
        stop_word_list  = load_stop_words();
        foreach(j, Bestand in Bestanden) {
            if (rerun) {
                if (!String.contains(Bestand, "ONBEKEND")) {
                    continue ;
                }
            }
            writeAuditTrail     (logfile, String.join(["Processing file " , Bestand]), 0, savelog);

folder_items        = String.split(Bestand, "\\\\", false);
        last_folder_name    = folder_items[Collection.length(folder_items)-2];
        dossier_tab         = get_dossier_tab(folder_items[Collection.length(folder_items)-1], dlc);
        possible_docs       = dlc.HR_dossier_tabs[dossier_tab];

Does anyone have any idea what kind of language is that?有谁知道那是一种什么样的语言?

Thank you in advance先感谢您

The code is closest to c++.代码最接近 C++。 It is definitely not java due to the fact that java does not have the foreach loop, the use keyword, and var.它绝对不是 java,因为 java 没有 foreach 循环、use 关键字和 var。 It is also probably not C# because of the library include syntax.由于库包含语法,它也可能不是 C#。 It could be low level pseudo code but it is unlikely due to the syntax being so close to a C based language.它可能是低级伪代码,但不太可能,因为语法与基于 C 的语言非常接近。 enter link description here在此处输入链接描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM