KevinStigma / jacy

A minimalist high level language for writing cross-platform native code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The JC language

Crunching numbers on the mobile? Tired of weird memory bugs in C? JC (read "Jacy") is developed just for things like this. Main features:

  • Javascript-inspired language with memory management and functional programming
  • Compiles to C and easily interops with C libraries
  • Convenient Javascript embedding using duktape
  • stb+SDL cross-platform GUI for fast prototyping
  • Comes with a miniature build system supporting Windows, Linux, Android, Mac OS X (need some porting for now), and iOS

To build

On Windows, just run 2.bat for a debug build, 1.bat for a release build.

With a Windows build in place, build the compiler for other platforms using:

2 --arch=something --build=release main.jc

And build the build system using:

2 --arch=something --build=release test/pmjs.jc

To use

See doc/language.md

To do

Document the SDL stuff

Commit the SDL patch for Win32 IME handling somewhere

Provide a Unix-based bootstrap compiler

About

A minimalist high level language for writing cross-platform native code


Languages

Language:C 93.3%Language:C++ 2.5%Language:JavaScript 2.0%Language:Objective-C 2.0%Language:Perl 0.1%Language:Java 0.0%Language:Python 0.0%Language:Batchfile 0.0%