Crack 0.5 Publishing a programming language

Source: Internet
Author: User
Keywords Crack
Tags class code compiled crack developed digital function import

Crack is a programming language designed to provide an easily developed scripting language and the implementation of a compiled language. The "crack" plan is a "script executor" online compilation source code, but it caches the appropriate code intermediate format. The crack language itself comes from the concept of C++++,java and Python, combining object-oriented programming, operator overloading, and strong typing.

Crack 0.5 This version adds support for generics and translates to generic container libraries. The Class I function and the functor support. The digital input system is modified to improve the processing of numeric types that depend on the platform. A hash table and a component library that is processed by command-line options. Add the typeof () operator. Full support for "Oper to" conversion implementation. Extended generator extensions allow classes of methods, constructors, and C function names for explicit specifications.

Sample code:

# import What we need from the appropriate modules&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;
Import Crack.io cout, Formatter;
Import Crack.sys argv;
Import Crack.strutil Stringarray;
Import Crack.cont.treemap TreeMap;

# # Cheesey Set implementation.
Class Argset {

# Set of all args
treemap[string, int] __raw = {};

# # Initialize the set from the ARG list.
Oper init (Stringarray args) {

# transmits args from the ' array to the ' Set
UINT i = 1;
while (I < Args.count ()) {
__raw[args[i++]] = 1;
}
}

# # Dump The Set
void Dump () {
for (Item:in __raw)
Cout ' got $ (item.key) \ n ';
}
}

# Initialize the arg set from the actual args
Argset a = {argv};

# Write the Set
A.dump ();

Download Address: http://crack-language.googlecode.com/files/crack-0.5.tar.gz

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.