ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:20.8 GB of 70.42 GB (29.54%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ share/ doc/ re2c/ examples/ lessons/ 001_upn_calculator/ - drwxr-xr-x

Directory:
Viewing file:     calc_004.c (2.56 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* Generated by re2c */
#line 1 "calc_004.re"
/* re2c lesson 001_upn_calculator, calc_004, (c) M. Boerger 2006 - 2007 */
#line 20 "calc_004.re"

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

char * tokendup(const char *t, const char *l)
{
    size_t n = l -t + 1;
    char *r = (char*)malloc(n);
    
    memmove(r, t, n-1);
    r[n] = '\0';
    return r;
}

int scan(char *s, int l)
{
    char *p = s;
    char *q = 0;
    char *t;
#define YYCTYPE         char
#define YYCURSOR        p
#define YYLIMIT         (s+l+2)
#define YYMARKER        q
#define YYFILL(n)        { printf("OOD\n"); return 2; }
    
    for(;;)
    {
        t = p;

#line 36 "<stdout>"
        {
            YYCTYPE yych;

            if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
            yych = *YYCURSOR;
            switch (yych) {
            case 0x00:    goto yy9;
            case '+':    goto yy5;
            case '-':    goto yy7;
            case '0':    goto yy2;
            case '1':
            case '2':
            case '3':
            case '4':
            case '5':
            case '6':
            case '7':
            case '8':
            case '9':    goto yy4;
            default:    goto yy11;
            }
yy2:
            ++YYCURSOR;
            switch ((yych = *YYCURSOR)) {
            case '0':
            case '1':
            case '2':
            case '3':
            case '4':
            case '5':
            case '6':
            case '7':
            case '8':
            case '9':    goto yy15;
            default:    goto yy3;
            }
yy3:
#line 57 "calc_004.re"
            { t = tokendup(t, p); printf("Num: %s\n", t); free(t); continue; }
#line 76 "<stdout>"
yy4:
            yych = *++YYCURSOR;
            goto yy14;
yy5:
            ++YYCURSOR;
#line 58 "calc_004.re"
            { printf("+\n");    continue; }
#line 84 "<stdout>"
yy7:
            ++YYCURSOR;
#line 59 "calc_004.re"
            { printf("+\n");    continue; }
#line 89 "<stdout>"
yy9:
            ++YYCURSOR;
#line 60 "calc_004.re"
            { printf("EOF\n");    return 0; }
#line 94 "<stdout>"
yy11:
            ++YYCURSOR;
#line 61 "calc_004.re"
            { printf("ERR\n");    return 1; }
#line 99 "<stdout>"
yy13:
            ++YYCURSOR;
            if (YYLIMIT <= YYCURSOR) YYFILL(1);
            yych = *YYCURSOR;
yy14:
            switch (yych) {
            case '0':
            case '1':
            case '2':
            case '3':
            case '4':
            case '5':
            case '6':
            case '7':
            case '8':
            case '9':    goto yy13;
            default:    goto yy3;
            }
yy15:
            ++YYCURSOR;
            if (YYLIMIT <= YYCURSOR) YYFILL(1);
            yych = *YYCURSOR;
            switch (yych) {
            case '0':
            case '1':
            case '2':
            case '3':
            case '4':
            case '5':
            case '6':
            case '7':
            case '8':
            case '9':    goto yy15;
            default:    goto yy17;
            }
yy17:
#line 56 "calc_004.re"
            { t = tokendup(t, p); printf("Oct: %s\n", t); free(t); continue; }
#line 138 "<stdout>"
        }
#line 62 "calc_004.re"

    }
    return 0;
}

int main(int argc, char **argv)
{
    if (argc > 1)
    {
        return scan(argv[1], strlen(argv[1]));
    }
    else
    {
        fprintf(stderr, "%s <expr>\n", argv[0]);
        return 0;
    }
}
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.589 seconds