/colang

Programming language and compiler —WORK IN PROGRESS—

Primary LanguageCISC LicenseISC

Co programming language

Building

Initial setup: ./init.sh will install the following into deps/:

Build:

  • Unoptimized with all checks enabled: ckit build co
  • Optimized with assertions: ckit build -safe co
  • Optimized without assertions: ckit build -fast co
  • RT test program: ckit watch -r co-rt-test
  • Verbose build: ckit build -v
  • Build everything: ckit build

Development and testing:

  • Run all tests: ./test.sh
  • Run all tests live: ./test.sh -w
  • Run unit test with prefix "scan": ./test.sh scan
  • Run unit test with prefix "scan" live: ./test.sh -w scan
  • Live main program: ckit watch -rsh="{BUILD}/co build example/hello.co" co

Note: debug builds have the following checks and features enabled: