Package ewa :: Package ply :: Module cpp
[hide private]
[frames] | no frames]

Module cpp

source code

Classes [hide private]
  Macro
  Preprocessor
Functions [hide private]
 
t_CPP_WS(t)
\s+
source code
 
CPP_INTEGER(t)
(((((0x)|(0X))[0-9a-fA-F]+)|(\d+))([uU]|[lL]|[uU][lL]|[lL][uU])?)
source code
 
t_CPP_INTEGER(t)
(((((0x)|(0X))[0-9a-fA-F]+)|(\d+))([uU]|[lL]|[uU][lL]|[lL][uU])?)
source code
 
t_CPP_STRING(t)
\"([^\\\n]|(\\(.|\n)))*?\"
source code
 
t_CPP_CHAR(t)
(L)?\'([^\\\n]|(\\(.|\n)))*?\'
source code
 
t_CPP_COMMENT(t)
(/\*(.|\n)*?\*/)|(//.*?\n)
source code
 
t_error(t) source code
 
trigraph(input) source code
Variables [hide private]
  tokens = ('CPP_ID', 'CPP_INTEGER', 'CPP_FLOAT', 'CPP_STRING', ...
  literals = '+-*/%|&~^<>=!?()[]{}.,;:\\\'"'
  t_CPP_POUND = '\\#'
  t_CPP_DPOUND = '\\#\\#'
  t_CPP_ID = '[A-Za-z_][\\w_]*'
  t_CPP_FLOAT = '((\\d+)(\\.\\d+)(e(\\+|-)?(\\d+))? | (\\d+)e(\\...
  _trigraph_pat = re.compile(r'\?\?[=/\'\(\)!<>-]')
  _trigraph_rep = {'!': '|', '\'': '^', '(': '[', ')': ']', '-':...
  __package__ = 'ewa.ply'
Variables Details [hide private]

tokens

Value:
('CPP_ID',
 'CPP_INTEGER',
 'CPP_FLOAT',
 'CPP_STRING',
 'CPP_CHAR',
 'CPP_WS',
 'CPP_COMMENT',
 'CPP_POUND',
...

t_CPP_FLOAT

Value:
'((\\d+)(\\.\\d+)(e(\\+|-)?(\\d+))? | (\\d+)e(\\+|-)?(\\d+))([lL]|[fF]\
)?'

_trigraph_rep

Value:
{'!': '|',
 '\'': '^',
 '(': '[',
 ')': ']',
 '-': '~',
 '/': '\\',
 '<': '{',
 '=': '#',
...