|
|
go_absolute = 0
set to 1 to track headers on files in /usr/include - else absolute
paths are ignored
|
|
|
standard_includes = []
|
|
|
use_trigraphs = 0
apply the trigraph rules first
|
|
|
strict_quotes = 0
Keep <> for system includes (do not search for those includes)
|
|
|
g_optrans = {'not': '!', 'and': '&&', 'bitand': '&', 'and_eq':...
these ops are for c++, to reset, set an empty dict
|
|
|
re_lines = re.compile('^[ \t]*(#|%:)[ \t]*(ifdef|ifndef|if|els...
|
|
|
re_mac = re.compile("^[a-zA-Z_]\w*")
|
|
|
re_fun = re.compile('^[a-zA-Z_][a-zA-Z0-9_]*[(]')
|
|
|
re_pragma_once = re.compile('^\s*once\s*', re.IGNORECASE)
|
|
|
re_nl = re.compile('\\\\\r*\n', re.MULTILINE)
|
|
|
re_cpp = re.compile(r"""(/\*[^*]*\*+([^/*][^*]*\*+)*/)|//[^\n]...
|
|
|
trig_def = [('??'+ a, b) for a, b in zip("=-/!'()<>", r'#~\|^[...
|
|
|
chr_esc = {'0': 0, 'a': 7, 'b': 8, 't': 9, 'n': 10, 'f': 11, '...
|
|
|
NUM = 'i'
|
|
|
OP = 'O'
|
|
|
IDENT = 'T'
|
|
|
STR = 's'
|
|
|
CHAR = 'c'
|
|
|
tok_types = [NUM, STR, IDENT, OP]
|
|
|
exp_types = [r"""0[xX](?P<hex>[a-fA-F0-9]+)(?P<qual1>[uUlL]*)|...
|
|
|
re_clexer = re.compile('|'.join(["(?P<%s>%s)" %(name, part) fo...
|
|
|
accepted = 'a'
|
|
|
ignored = 'i'
|
|
|
undefined = 'u'
|
|
|
skipped = 's'
|
|
|
prec = {}
|
|
|
ops = ['* / %', '+ -', '<< >>', '< <= >= >', '== !=', '& | ^',...
|
|
|
re_include = re.compile('^\s*(<(?P<a>.*)>|"(?P<b>.*)")')
|