Hello, Bosque! 微软最新推出语言Bosque

配置Bosque环境

  • 安装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!";
}
 
最后希望大家能多为微软语言的新家庭成员贡献代码。

猜你喜欢

转载自www.cnblogs.com/richardcuick/p/10739878.html