sun

Sun programming language source code

MIT License

Stars
9

@document.meta title: README description: Sun programming language README authors: NTBBloodbath categories: sun, programming language created: 2022-03-01 version: 0.0.11 @end

  • Sun programming language Sun is a strongly-typed compiled programming language heavily inspired by C, Rust, Lua and Python.

    Sun programming language source code /and compiler/ are written in C++, following C++17 standard.

    It is in a pretty barebones stage, however if you want to take a look at the specifications for it you can go {./specs.norg}[here]. You can also take a look at some tests made to test current features in {@ tests} directory.

** Building from source *** Requirements - GCC +10 / Clang +11 (recommended) - Xmake +2.6.0 - LLVM

*** Compatibility Currently, Sun can be compiled in Linux and Windows (MacOS is untested), however, generated Assembly code for Sun source code only works for Linux at the moment due to differences between Windows x64 assembly call conventions and SysV ABI conventions.

  Codebase is going to be rewritten to produce LLVM IR code instead of directly generating
  Assembly code so we can fix Windows compatibility without suffering.

  You can use XMake to compile Sun, just run `xmake` in Sun repository
  directory and XMake will handle everything for you. Produced `sun` binary should be under
  `build/{platform}/{arch}/{build_mode}` directory if everything goes well.

  Currently XMake produces a debugging build of Sun compiler. If you want to produce a
  production binary of it, you should `xmake f -m release` then `xmake` to compile Sun compiler.
  You could also `xmake f -m releasedbg` if you want a production build with debugging
  information.

** License Sun is licensed under {./LICENSE}[MIT] license.

#comment vim:sw=2:ts=2:cole=3:cocu=n:tw=100:norl:nofen: