CatapultServer  v0.5.0.1 (Elephant)
cppLexer.py File Reference

Namespaces

 cppLexer
 

Functions

def cppLexer.t_COMMENT_SINGLELINE (tok)
 
def cppLexer.t_COMMENT_MULTILINE (tok)
 
def cppLexer.t_NEWLINE (tok)
 
def cppLexer.t_error (err)
 

Variables

list cppLexer.tokens
 
string cppLexer.t_ignore = ' \t\r.?@\f'
 
string cppLexer.t_NUMBER = r'[0-9][0-9XxA-Fa-f]*'
 
string cppLexer.t_FLOAT_NUMBER = r'[-+]?[0-9]*\.[0-9]+([eE][-+]?[0-9]+)?'
 
string cppLexer.t_NAME = r'[A-Za-z_~][A-Za-z0-9_]*'
 
string cppLexer.t_OPEN_PAREN = r'\('
 
string cppLexer.t_CLOSE_PAREN = r'\)'
 
string cppLexer.t_OPEN_BRACKET = r'<'
 
string cppLexer.t_CLOSE_BRACKET = r'>'
 
string cppLexer.t_OPEN_BRACE = r'{'
 
string cppLexer.t_CLOSE_BRACE = r'}'
 
string cppLexer.t_OPEN_SQUARE_BRACKET = r'\['
 
string cppLexer.t_CLOSE_SQUARE_BRACKET = r'\]'
 
string cppLexer.t_SEMI_COLON = r';'
 
string cppLexer.t_COLON = r':'
 
string cppLexer.t_COMMA = r','
 
string cppLexer.t_BACKSLASH = r'\\'
 
string cppLexer.t_PIPE = r'\|'
 
string cppLexer.t_PERCENT = r'%'
 
string cppLexer.t_CARET = r'\^'
 
string cppLexer.t_EXCLAMATION = r'!'
 
string cppLexer.t_PRECOMP_MACRO = r'\#(.*?\\\n|.*)*'
 
string cppLexer.t_ASTERISK = r'\*'
 
string cppLexer.t_MINUS = r'\-'
 
string cppLexer.t_PLUS = r'\+'
 
string cppLexer.t_DIVIDE = r'/(?!/)'
 
string cppLexer.t_AMPERSTAND = r'&'
 
string cppLexer.t_EQUALS = r'='
 
string cppLexer.t_CHAR_LITERAL = '\'.\''
 
string cppLexer.t_SQUOTE = r'\''
 
string cppLexer.t_STRING_LITERAL = r'"([^"\\]|\\.)*"'