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:23.26 GB of 70.42 GB (33.03%)
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/ src/ maildrop-2.2.0/ maildrop/ - drwxr-xr-x

Directory:
Viewing file:     lexer.h (1.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef    lexer_h
#define    lexer_h

static const char lexer_h_rcsid[]="$Id: lexer.h,v 1.1 1998/04/17 00:08:53 mrsam Exp $";

#include    "mio.h"
#include    "buffer.h"
#include    "token.h"

////////////////////////////////////////////////////////////////////////////
//
// Lexer is a lexical scanner - translates a text file into individual
// tokens.  The Token class is used to represent an individual token, the
// Lexer class is used to transform a text file into a list of tokens.
//
// The scanning algorythm is quite involved.  We may read ahead in the file,
// then back up.  An 'undo' buffer is maintained.  The actual file is
// referred to indirectly via the Mio class.
//
// The concept of the 'current line number' and 'filename' is also recorded
// by the Lexer object.  An error message function is provided - given an
// error message, the filename, and the line number is printer to standard
// error, followed by the error message.
//
////////////////////////////////////////////////////////////////////////////

class    Lexer {

    Mio file;
    int linenum;
    Buffer filename;
    Token::tokentype lasttokentype;
    // curchar() represents the next character in the file.
    // Calling curchar() does NOT actual "read" the character, this
    // is a "peek" function.

    int    curchar() {    return (file.peek()); }

    // nextchar() is used to actually read the next character.

    int    nextchar() { int c=file.get();

                if (c == '\n')    ++linenum;
                return (c);
            }
    void    error(const char *);

public:
    Lexer()    {}
    ~Lexer()    {}
    int    Open(const char *);    // Open file to read
    void    token(Token &);        // Scan the next token in
private:
    void    token2(Token &);
public:
    void    errmsg(const char *);    // Show error message
    void    errmsg(unsigned long, const char *);
                    // Show error message for a different
                    // line
    int    Linenum() { return (linenum); }
                    // Return current line number in recipe
                    // file
} ;

#endif
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: 1.0703 seconds