Metacza 2 publish C + + meta template language

Source: Internet
Author: User
Keywords C++ metacza Meta template language
Tags compilers error file files installation installed syntax type

Metacza 2 This version fixes an error, omitting a file that needs to be installed before the build. Makes it impossible to work with a new installation.

Metacza is a language whose compilers can be exported using the c++++ Meta template language. Using a more concise syntax makes the Meta template language easier to program. Matacza lets you write programs using Boost::mpl and generate C + + header files, or you can use Boost::mpl.

Metacza is a more advanced language than Closures and LAMBDA.

Example:

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;

Input:metacza

FIB (n) = fib (n-1) + fib (n-2); fib (0) = 0;FIB (1) = 1;

Output:c++

Template<typename n>struct fib {typedef typename plus< TypeName fib< TypeName minus< N, int_<1>: : Type >::type, TypeName fib< TypeName minus< N, int_<2> >::type >::type >::type type; Template<>struct fib< int_<0> > {typedef int_<0> type; Template<>struct fib< int_<1> > {typedef int_<1> type;

Download Address: http://www.theiling.de/downloads/metacza-2-src.tgz

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.