jkc

所属分类:其他
开发工具:D
文件大小:0KB
下载次数:0
上传日期:2024-04-09 19:33:12
上 传 者sh-1993
说明:  JK编程语言的编译器。
(Compiler for the JK programming language.)

文件列表:
lib/
src/
LICENSE
build.sh
demo.jk

# JKC Compiler for the JK programming language. ## Description JK is a statically typed compiled programming language designed for general use. The compiler JKC is written from scratch, compiles to native x86-64 assembly and features its own backend. At the moment, unless you're me, you probably won't be able to put up with the ridiculous limitations of this language. Such as: if conditions with only a single condition at a time, no order of operations, only one math operation at a time, just to name a few. This language is still in development, so expect frequent bugs and missing features if you do choose to use it. ## Example Here's hello world in JK: ```jk include "lib/std.jk"; func main: v0 { putln("Hello world!"); } ``` In order to view the output assembly: ```console $ jkc -s demo.jk $ cat out.asm ``` For more info, see the [usage](https://github.com/joshkkin/jkc/blob/master/#usage) section. ## Building You will need to build the compiler JKC from source, so make sure you install the following dependencies. - ```gdc``` - GNU D Compiler - ```fasm``` - Flat Assembler Then run the build script: ```console ./build.sh ``` ## Usage The file to compile is always the last argument. ``` jkc [options] file ``` ### Options - ```-h``` - Show help information. - ```-s``` - Generate source assembly along with the output. - ```-o ``` - Output to `````` instead of the default 'out.bin'. ## License [Apache 2.0](https://github.com/joshkkin/jkc/blob/master/./LICENSE) ## Glory to God Thank You, Lord, for Your strength and guidance in my work. You are my fulfillment of all good things. Fill also my soul with joy and gladness, that I may praise You always. Amen.

近期下载者

相关文件


收藏者