kai

所属分类:编译器/解释器
开发工具:Swift
文件大小:149KB
下载次数:0
上传日期:2018-04-30 18:52:58
上 传 者sh-1993
说明:  一种富于表现力的低级编程语言
(An expressive low level programming language)

文件列表:
.circleci (0, 2018-05-01)
.circleci\config.yml (1408, 2018-05-01)
.sourcery.yml (93, 2018-05-01)
.travis.yml (474, 2018-05-01)
Package.resolved (1406, 2018-05-01)
Package.swift (631, 2018-05-01)
Sources (0, 2018-05-01)
Sources\CShims (0, 2018-05-01)
Sources\CShims\include (0, 2018-05-01)
Sources\CShims\include\shim.h (33, 2018-05-01)
Sources\CShims\shim.c (183, 2018-05-01)
Sources\Core (0, 2018-05-01)
Sources\Core\Ast.swift (35475, 2018-05-01)
Sources\Core\Builtins (0, 2018-05-01)
Sources\Core\Builtins\Builtins.swift (8845, 2018-05-01)
Sources\Core\Builtins\PlatformPackage.swift (1413, 2018-05-01)
Sources\Core\Builtins\TypesPackage.swift (19669, 2018-05-01)
Sources\Core\Builtins\globals.swift (9807, 2018-05-01)
Sources\Core\Checker.swift (120022, 2018-05-01)
Sources\Core\Compiler.swift (8351, 2018-05-01)
Sources\Core\Descriptions (0, 2018-05-01)
Sources\Core\Descriptions\AST+Descriptions.swift (1200, 2018-05-01)
Sources\Core\Descriptions\Type+Description.swift (3329, 2018-05-01)
Sources\Core\Directives.swift (457, 2018-05-01)
Sources\Core\Entity.swift (3480, 2018-05-01)
Sources\Core\Errors.swift (1378, 2018-05-01)
Sources\Core\Helpers (0, 2018-05-01)
Sources\Core\Helpers\FileScanner.swift (1541, 2018-05-01)
Sources\Core\Helpers\Git.swift (5145, 2018-05-01)
Sources\Core\Helpers\Helpers.swift (8532, 2018-05-01)
Sources\Core\Helpers\JobSystem.swift (3515, 2018-05-01)
Sources\Core\Helpers\Mutex.swift (1305, 2018-05-01)
Sources\Core\Helpers\PriorityQueue.swift (8799, 2018-05-01)
Sources\Core\Helpers\Queue.swift (1016, 2018-05-01)
Sources\Core\Helpers\Shell.swift (842, 2018-05-01)
Sources\Core\Helpers\ThreadLocal.swift (108, 2018-05-01)
Sources\Core\Helpers\Timer.swift (1218, 2018-05-01)
... ...

# Kai Programming Language [![Gitter chat](https://badges.gitter.im/kai-language/lobby.png)](https://gitter.im/kai-language/lobby) An expressive low level programming language. ## Documentation Read the docs at [docs.kai-lang.org](http://docs.kai-lang.org) ## Featured projects Have you built something cool? Feel free to share it here! * [KaiNES](https://github.com/BrettRToomey/KaiNES): A pure-Kai NES emulator. * [KaiVM](https://github.com/BrettRToomey/KaiVM): A register-based VM and disassembler. * [Kinit](https://github.com/aifia/kinit): A minimal init system. ## Download and Install ### MacOS You can download and install Kai through our homebrew tap. ``` brew install kai-language/tap/kai ``` ### Linux In the future, Kai will offer official binary distribution through apt and other package managers. See [building Kai](#building-kai). ## Building Kai Before you can begin building Kai, you must install the following dependencies: * Swift 4.0 * LLVM 4 or higher * libgit2 ### Swift 4 On Mac, the preferred way to install Swift 4 is by installing [Xcode](https://developer.apple.com/xcode/). After installing Xcode, make sure to run it once and say `yes` to installing the command-line tools. ### LLVM By far, the easiest way to install LLVM on Mac is through [brew](https://brew.sh). After setting up brew, run the following to install the correct version of LLVM: ``` brew install llvm ``` #### Using LLVM with Swift Package Manager Now that LLVM is installed, append the directory to your path in `~/.bash_profile` ``` /usr/local/opt/llvm/bin ``` In order for Swift Package Manager to build against LLVM's libraries, we need to setup a pkg-config file. Thankfully, [LLVMSwift](https://github.com/trill-lang/LLVMSwift_) has a script for this: Grab the script by running `swift package update` in Kai's root directory. Then, run: ``` swift .build/checkouts/LLVMSwift.git-/utils/make-pkgconfig.swift ``` ### LibGit2 Just like LLVM, [libgit2](https://libgit2.github.com) can be installed through brew. ``` brew install libgit2 ```

近期下载者

相关文件


收藏者