2016-10-18 173 views
-8

我收到了一段代码,但我不明白它是什么类型的语言。它看起来像C#,但是C#使用“using”子句来导入一个库,在这个编程语言文件中使用“use”子句。我找不到任何有关“使用”条款的信息,实际上我很困惑,因为这种编程语言看起来像C#/ Java/Visual Basic,但在这些语言中我找不到“使用”子句的用法。奇怪的是代码没有使用任何方法,我收到的文件有一个.txt扩展名。那是什么语言?

文件开始这样:

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; 

之后,他们宣布了一堆的变量的“变种”的条款,然后部分代码看起来像这样:

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]; 

有没有人有任何想法是什么样的语言?

谢谢你提前

+1

询问给你代码的人..这看起来可能是'c或C++甚至是Java' – MethodMan

+0

看起来像'C++' –

+0

'foreach(a,b)','include'和'use'都在xillio平台(ETL)脚本语言中提供https://support.xillio.com/support/solutions/articles/6000061410-basic-syntax –

回答

0

该代码是最接近C++。这肯定不是java,因为java没有foreach循环,use关键字和var。这也可能不是C#,因为库包含语法。它可能是低级别的伪代码,但由于语法与C语言非常接近,所以不太可能。 enter link description here