CatapultServer  v0.5.0.1 (Elephant)
cppLexer Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ t_COMMENT_MULTILINE()

def cppLexer.t_COMMENT_MULTILINE (   tok)

◆ t_COMMENT_SINGLELINE()

def cppLexer.t_COMMENT_SINGLELINE (   tok)

◆ t_error()

def cppLexer.t_error (   err)

◆ t_NEWLINE()

def cppLexer.t_NEWLINE (   tok)

Variable Documentation

◆ t_AMPERSTAND

string cppLexer.t_AMPERSTAND = r'&'

◆ t_ASTERISK

string cppLexer.t_ASTERISK = r'\*'

◆ t_BACKSLASH

string cppLexer.t_BACKSLASH = r'\\'

◆ t_CARET

string cppLexer.t_CARET = r'\^'

◆ t_CHAR_LITERAL

string cppLexer.t_CHAR_LITERAL = '\'.\''

◆ t_CLOSE_BRACE

string cppLexer.t_CLOSE_BRACE = r'}'

◆ t_CLOSE_BRACKET

string cppLexer.t_CLOSE_BRACKET = r'>'

◆ t_CLOSE_PAREN

string cppLexer.t_CLOSE_PAREN = r'\)'

◆ t_CLOSE_SQUARE_BRACKET

string cppLexer.t_CLOSE_SQUARE_BRACKET = r'\]'

◆ t_COLON

string cppLexer.t_COLON = r':'

◆ t_COMMA

string cppLexer.t_COMMA = r','

◆ t_DIVIDE

string cppLexer.t_DIVIDE = r'/(?!/)'

◆ t_EQUALS

string cppLexer.t_EQUALS = r'='

◆ t_EXCLAMATION

string cppLexer.t_EXCLAMATION = r'!'

◆ t_FLOAT_NUMBER

string cppLexer.t_FLOAT_NUMBER = r'[-+]?[0-9]*\.[0-9]+([eE][-+]?[0-9]+)?'

◆ t_ignore

string cppLexer.t_ignore = ' \t\r.?@\f'

◆ t_MINUS

string cppLexer.t_MINUS = r'\-'

◆ t_NAME

string cppLexer.t_NAME = r'[A-Za-z_~][A-Za-z0-9_]*'

◆ t_NUMBER

string cppLexer.t_NUMBER = r'[0-9][0-9XxA-Fa-f]*'

◆ t_OPEN_BRACE

string cppLexer.t_OPEN_BRACE = r'{'

◆ t_OPEN_BRACKET

string cppLexer.t_OPEN_BRACKET = r'<'

◆ t_OPEN_PAREN

string cppLexer.t_OPEN_PAREN = r'\('

◆ t_OPEN_SQUARE_BRACKET

string cppLexer.t_OPEN_SQUARE_BRACKET = r'\['

◆ t_PERCENT

string cppLexer.t_PERCENT = r'%'

◆ t_PIPE

string cppLexer.t_PIPE = r'\|'

◆ t_PLUS

string cppLexer.t_PLUS = r'\+'

◆ t_PRECOMP_MACRO

string cppLexer.t_PRECOMP_MACRO = r'\#(.*?\\\n|.*)*'

◆ t_SEMI_COLON

string cppLexer.t_SEMI_COLON = r';'

◆ t_SQUOTE

string cppLexer.t_SQUOTE = r'\''

◆ t_STRING_LITERAL

string cppLexer.t_STRING_LITERAL = r'"([^"\\]|\\.)*"'

◆ tokens

list cppLexer.tokens