Esempio n. 1
0
int range2(int a, int b) {
    static int i = 0;
    crBegin;
            for (i = a; i < b; i++)
                crReturn(1, i);
    crFinish;
}
Esempio n. 2
0
int defunction() {
    static int i;
    crBegin;
    for (i = 0; i < 10; ++i)
        crReturn(1, i);
    crFinish;
}
Esempio n. 3
0
int function(void) {
    static int i;
    crBegin;
    for (i = 0; i < 6; i++)
        crReturn(1, i);
    crFinish;
	return 0;
}
Esempio n. 4
0
void parser(int c) {
    crBegin;
    while (1) {
        if (c == EOF)
            break;
        if (isalpha(c)) {
            do {
                add_to_token(c);
                crReturn();
            } while (isalpha(c));
            got_token(WORD);
        }

        add_to_token(c);
        got_token(PUNCT);
        crReturn();
    }
    crFinish;
}
Esempio n. 5
0
int decompressor() {
    static int c, len;
    crBegin;
    while (1) {
        c = getchar();
        if (c == EOF)
            break;
        if (c == 0xFF) {
            len = getchar();
            c = getchar();
            while (len--)
                crReturn(c);
        } else
            crReturn(c);
    }

    crReturn(EOF);
    crFinish;
}