zenon

所属分类:collect
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2023-03-22 11:28:01
上 传 者sh-1993
说明:  Zenon编程语言,
(The Zenon programming language,)

文件列表:
Makefile (1447, 2023-09-06)
codegen_includes/ (0, 2023-09-06)
codegen_includes/all.h (2051, 2023-09-06)
codegen_includes/any.hpp (1680, 2023-09-06)
codegen_includes/array_utils.h (194, 2023-09-06)
codegen_includes/fat_pointers.h (1354, 2023-09-06)
codegen_includes/lite_str.h (8369, 2023-09-06)
codegen_includes/main_body.h (39, 2023-09-06)
codegen_includes/main_body_args.h (232, 2023-09-06)
codegen_includes/main_body_args_void.h (237, 2023-09-06)
codegen_includes/main_body_void.h (44, 2023-09-06)
codegen_includes/optional.hpp (73584, 2023-09-06)
codegen_includes/stacktrace.h (581, 2023-09-06)
codegen_includes/variant_helpers.h (1498, 2023-09-06)
docs/ (0, 2023-09-06)
docs/Arrays and Slices.rst (1384, 2023-09-06)
docs/Constructors and Destructors.rst (1385, 2023-09-06)
docs/Embedding and interfacing with C++.rst (858, 2023-09-06)
docs/Enums and Unions.rst (2018, 2023-09-06)
docs/Getting Started.rst (1131, 2023-09-06)
docs/Lambda Expressions.rst (753, 2023-09-06)
docs/Language Basics.rst (3770, 2023-09-06)
docs/Loops.rst (1784, 2023-09-06)
docs/Makefile (580, 2023-09-06)
docs/Move and Copy Semantics.rst (1266, 2023-09-06)
docs/Operator Overloading.rst (1094, 2023-09-06)
docs/Reflection and Metaprogramming.rst (351, 2023-09-06)
docs/Run-time polymorphism.rst (2685, 2023-09-06)
docs/Standard Library.rst (625, 2023-09-06)
docs/Templates.rst (2526, 2023-09-06)
docs/conf.py (5623, 2023-09-06)
docs/index.rst (4215, 2023-09-06)
docs/stub.rst (9, 2023-09-06)
run_tests.sh (1574, 2023-09-06)
src/ (0, 2023-09-06)
src/ProgramOptions.h (61526, 2023-09-06)
... ...

## The Zenon programming language Zenon is a statically typed language inspired by C++. Its mission is to offer safer and easier application development thanks to high-level features and fast compile times, while keeping C++’s performance and familiar syntax. It’s also massively simpler than C++. Visit https://zenon-lang.org for an overview of the language. ### Compiling The Zenon compiler is currently in the prototype phase, and if you’d like to try it out, you’ll have to compile it from source. Note that Zenon compiles only with the GCC or Clang compiler, it doesn’t work with MSVC. Download the source code from Github: git clone https://github.com/miki151/zenon.git Zenon requires boost-regex. You can install it on Ubuntu with: apt install libboost-regex-dev Now you can just run make to build it: cd zenon make Let’s try out an example program. echo ' import "std/io.znn"; int main(string[] args) { if (!args.empty()) printf("The first argument was: {args[0]}\n"); return 0; } ' > test.znn ./zenon test.znn -o test ./test Zenon automatically compiles all imported files as separate compilation units and links them, so there is no need to write Makefiles. The default C++ compiler used by zenon is “g++”. You can change it or add extra flags with a command line flag, run ./zenon –help to see all of the options. If you run zenon without the -o flag, it will output the generated C++ code to stdout.

近期下载者

相关文件


收藏者