Hello, Bosque! 微軟最新推出語言Bosque

配置Bosque環境node

  • 安裝NodeJS最新的LTS版本,可從 https://nodejs.org/en/得到。
  • 安裝Typescript,命令 npm i typescripte -g
  • 克隆Bosque代碼庫: git clone https://github.com/Microsoft/BosqueLanguage.git
  • 下載構建並測試依賴,到本地代碼庫中的 ref_impl 文件夾,運行命令  npm install && npm run-script build && npm test
  • 在  ref_impl 文件夾運行命令執行代碼  node bin/test/app_runner.js FILE.bsq
 
Hello, World 示例 (HelloWorld.bsq)
 
namespace NSMain;
 
entrypoint function main(): String {
    return "Hello, World!";
}
 
最後但願你們能多爲微軟語言的新家庭成員貢獻代碼。
相關文章
相關標籤/搜索