Searched refs:RE_IDENTIFIER (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/scripts/codeconverter/codeconverter/ |
H A D | regexps.py | 80 RE_IDENTIFIER = r'[a-zA-Z_][a-zA-Z0-9_]*(?![a-zA-Z0-9])' variable 93 RE_SIMPLEDEFINE = S(r'^[ \t]*#[ \t]*define[ \t]+', RE_IDENTIFIER, r'[ \t]*\n') 95 RE_STRUCT_TYPE = S(r'struct\s+', RE_IDENTIFIER) 96 RE_TYPE = OR(RE_IDENTIFIER, RE_STRUCT_TYPE) 98 RE_MACRO_CONCAT = M(S(OR(RE_IDENTIFIER, RE_STRING), SP), n='{2,}') 100 RE_SIMPLE_VALUE = OR(RE_IDENTIFIER, RE_STRING, RE_NUMBER) 102 RE_FUN_CALL = S(RE_IDENTIFIER, r'\s*\(\s*', RE_SIMPLE_VALUE, r'\s*\)') 105 RE_ADDRESS = S(r'&\s*', RE_IDENTIFIER) 108 RE_ARRAY_CAST = S(r'\(\s*', RE_IDENTIFIER, r'\s*\[\s*\]\)')
|
H A D | qom_macros.py | 106 NAMED('name', RE_IDENTIFIER), r'\s*;[ \t]*\n') 234 OPTIONAL_PARS(RE_IDENTIFIER), r',', CPP_SPACE, 235 NAMED('qom_typename', RE_IDENTIFIER), r'\s*\)\n', 446 OPTIONAL_PARS(RE_IDENTIFIER), r',', CPP_SPACE, 499 NAMED('uppercase', RE_IDENTIFIER), r'\s*,\s*', 512 NAMED('uppercase', RE_IDENTIFIER), r'\s*,\s*', 524 NAMED('uppercase', RE_IDENTIFIER), r'\s*,\s*', 535 NAMED('uppercase', RE_IDENTIFIER), r'\s*,\s*', 549 NAMED('uppercase', RE_IDENTIFIER), r'\s*,\s*', 709 NAMED('uppercase', RE_IDENTIFIER), SP, [all …]
|
H A D | qom_type_info.py | 26 NAMED('name', RE_IDENTIFIER), r'\s*=\s*{[ \t]*\n') 429 NAMED('name', RE_IDENTIFIER), r'\s*,\s*', 430 NAMED('instancetype', RE_IDENTIFIER), r'\s*,\s*', 431 NAMED('classtype', RE_IDENTIFIER), r'\s*,\s*', 432 NAMED('uppercase', RE_IDENTIFIER), r'\s*,\s*', 433 NAMED('parent_uppercase', RE_IDENTIFIER), 442 NAMED('lowercase', RE_IDENTIFIER), r'\s*,\s*', 443 NAMED('uppercase', RE_IDENTIFIER), r'\s*,\s*', 444 NAMED('parent_uppercase', RE_IDENTIFIER), 699 if re.fullmatch(RE_IDENTIFIER, typename): [all …]
|
H A D | test_regexps.py | 16 assert fullmatch(RE_IDENTIFIER, 'sizeof') 17 assert fullmatch(RE_IDENTIFIER, 'X86CPU') 19 assert fullmatch(RE_IDENTIFIER, 'X86_CPU_TYPE_NAME')
|
H A D | test_patching.py | 50 regexp = S(r'BEGIN\s+', NAMED('name', RE_IDENTIFIER), r'\n', 54 regexp = S(r'^\s*', NAMED('name', RE_IDENTIFIER), r'\(\)\n')
|