Home
last modified time | relevance | path

Searched refs:compile (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_compiler.py51 self.assertRaises(SyntaxError, compiler.compile,
55 compiler.compile(buf, basename, "exec")
64 compiler.compile("class foo():pass\n\n","<string>","exec")
67 compiler.compile("def g(): yield\n\n", "<string>", "exec")
72 c = compiler.compile('f(x=1, *(2, 3), y=4)', '<string>', 'exec')
80 c = compiler.compile("try:\n 1//0\nexcept:\n e = 1\nfinally:\n f = 1",
91 c = compiler.compile('"doc"', '<string>', 'exec')
93 c = compiler.compile('def f():\n "doc"', '<string>', 'exec')
127 c = compiler.compile('def g():\n'
139 c = compiler.compile('list((i,j) for i in range(3) if i < 3'
[all …]
Dtest_compile.py10 compile("hi", "<test>", "exec")
11 compile("hi\r", "<test>", "exec")
14 compile("", "<test>", "exec")
17 compile("\r\n", "<test>", "exec")
18 compile("\r", "<test>", "exec")
19 compile("hi\r\nstuff\r\ndef f():\n pass\r", "<test>", "exec")
20 compile("this_is\rreally_old_mac\rdef f():\n pass", "<test>", "exec")
24 self.assertRaises(SyntaxError, compile, '__debug__ = 1', '?', 'single')
52 self.assertRaises(SyntaxError, compile, "1+*3", "filename", "exec")
55 self.assertRaises(SyntaxError, compile, "f(None=1)", "<string>", "exec")
[all …]
Dtest_re.py21 x = re.compile('ab+c')
112 pattern = re.compile('.')
116 self.assertRaises(ValueError, re.compile, pattern, re.I)
120 re.compile("(?P<quote>)(?(quote))")
238 pat = re.compile('((a)|(b))(c)?')
252 pat = re.compile('(?:(?P<a1>a)|(?P<b2>b))(?P<c3>c)?')
275 p = re.compile('(?P<g1>a)(?P<g2>b)?((?(g2)c|d))')
500 oldpat = re.compile('a(?:b|(c|e){1,2}?|d)+?(.)')
514 self.assertNotEqual(re.compile('^pattern$', flag), None)
552 self.assertRaises(re.error, re.compile, 'foo[a-')
[all …]
Dtest_codeop.py33 exec compile(str,"<input>","single") in r
42 expected = compile(str, "<input>", symbol, PyCF_DONT_IMPLY_DEDENT)
65 compile("pass", "<input>", 'single',
68 compile("pass", "<input>", 'single',
294 compile("a = 1\n", "abc", 'single').co_filename)
296 compile("a = 1\n", "def", 'single').co_filename)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/
DParserValidate.py130 ReIsValieFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL)
161 ReIsValieArch = re.compile(r"^[a-zA-Z]+[a-zA-Z0-9]{0,}$", re.DOTALL)
181 ReIsValidFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL)
199 ReIsValidBuildOption1 = re.compile(r"^\s*(\*)|([A-Z][a-zA-Z0-9]*)$")
200 ReIsValidBuildOption2 = re.compile(r"^\s*(\*)|([a-zA-Z][a-zA-Z0-9]*)$")
224 Match = re.compile(ReString).match(Token)
423 re.compile(r"^[0-9A-Za-z][0-9A-Za-z\-_]*$", re.DOTALL)
442 ReIsValidDecVersion = re.compile(r"[0-9]+\.?[0-9]+$")
444 ReIsValidDecVersion = re.compile(r"[0-9]+$")
459 ReIsValidHexVersion = re.compile(r"[0][xX][0-9A-Fa-f]{8}$", re.DOTALL)
[all …]
DExpressionValidate.py181 Match1 = re.compile(self.HEX_PATTERN).match(self.Token[self.Index:])
186 Match2 = re.compile(self.INT_PATTERN).match(self.Token[self.Index:])
191 Match3 = re.compile(self.MACRO_PATTERN).match(self.Token[self.Index:])
196 Match4 = re.compile(self.PCD_PATTERN).match(self.Token[self.Index:])
205 Match1 = re.compile(self.MACRO_PATTERN).match(self.Token[self.Index:])
210 Match2 = re.compile(self.PCD_PATTERN).match(self.Token[self.Index:])
215 Match3 = re.compile(self.QUOTED_PATTERN).\
383 re.compile(self.INT_PATTERN).match(self.Token[self.Index:])
385 re.compile(self.HEX_PATTERN).match(self.Token[self.Index:])
395 IntRangeMatch = re.compile(
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
DGlobalData.py44 gMacroRefPattern = re.compile("\$\(([A-Z][_A-Z0-9]*)\)", re.UNICODE)
45 gMacroDefPattern = re.compile("^(DEFINE|EDK_GLOBAL)[ \t]+")
46 gMacroNamePattern = re.compile("^[A-Z][A-Z0-9_]*$")
48 gWideStringPattern = re.compile('(\W|\A)L"')
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dtexcheck.py87 texcmd = re.compile(r'\\[A-Za-z]+')
88 falsetexcmd = re.compile(r'\/([A-Za-z]+)') # Mismarked with forward slash
100 delimiters = re.compile(r'\\(begin|end){([_a-zA-Z]+)}|([()\[\]])')
101 braces = re.compile(r'({)|(})')
102 doubledwords = re.compile(r'(\b[A-za-z]+\b) \b\1\b')
103 spacingmarkup = re.compile(r'\\(ABC|ASCII|C|Cpp|EOF|infinity|NULL|plusminus|POSIX|UNIX)\s')
108 tablestart = re.compile(r'\\begin{(?:long)?table([iv]+)}')
109 tableline = re.compile(r'\\line([iv]+){')
110 tableend = re.compile(r'\\end{(?:long)?table([iv]+)}')
Dh2py.py26 p_define = re.compile('^[\t ]*#[\t ]*define[\t ]+([a-zA-Z0-9_]+)[\t ]+')
28 p_macro = re.compile(
32 p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([a-zA-Z0-9_/\.]+)')
34 p_comment = re.compile(r'/\*([^*]+|\*+[^/])*(\*+/)?')
35 p_cpp_comment = re.compile('//.*')
39 p_char = re.compile(r"'(\\.[^\\]*|[^\\])'")
41 p_hex = re.compile(r"0x([0-9a-fA-F]+)L?")
67 ignores.append(re.compile(a))
Dmailerdaemon.py68 x = re.compile(x, re.MULTILINE)
72 xl.append(re.compile(x, re.MULTILINE))
86 re.compile(r'^<<< 5\d{2} (?P<reason>.*)', re.MULTILINE),
87 re.compile('===== stderr was =====\nrmail: (?P<reason>.*)'),
88 re.compile('^Diagnostic-Code: (?P<reason>.*)', re.MULTILINE),
90 emparse_list_from = re.compile('^From:', re.IGNORECASE|re.MULTILINE)
134 exp = re.compile(re.escape(email).join(regexp.split('<>')), re.MULTILINE)
159 pat = re.compile('^[0-9]*$')
Dcombinerefs.py92 for line in read(fi, re.compile(r'^Remaining objects:$'), False):
95 crack = re.compile(r'([a-zA-Z\d]+) \[(\d+)\] (.*)')
99 for line in read(fi, re.compile(r'^Remaining object addresses:$'), False):
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Trim/
DTrim.py35 gLineControlDirective = re.compile('^\s*#(?:line)?\s+([0-9]+)\s+"*([^"]*)"')
37 gTypedefPattern = re.compile("^\s*typedef\s+struct(\s+\w+)?\s*[{]*$", re.MULTILINE)
39 gPragmaPattern = re.compile("^\s*#pragma\s+pack", re.MULTILINE)
41 gTypedef_SinglePattern = re.compile("^\s*typedef", re.MULTILINE)
43 gTypedef_MulPattern = re.compile("^\s*(typedef)?\s+(struct|union)(\s+\w+)?\s*[{]*$", re.MULTILINE)
51 gHexNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])(0[xX])([0-9a-fA-F]+)(U(?=$|[^a-zA-Z0-9_]))?")
53 gDecNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])([0-9]+)U(?=$|[^a-zA-Z0-9_])")
55 gLongNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])(0[xX][0-9a-fA-F]+|[0-9]+)U?LL(?=$|[^a-zA-Z0-9_]…
58 gAslIncludePattern = re.compile("^(\s*)[iI]nclude\s*\(\"?([^\"\(\)]+)\"\)", re.MULTILINE)
60 gAslCIncludePattern = re.compile(r'^(\s*)#include\s*[<"]\s*([-\\/\w.]+)\s*([>"])', re.MULTILINE)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DHTMLParser.py16 interesting_normal = re.compile('[&<]')
17 interesting_cdata = re.compile(r'<(/|\Z)')
18 incomplete = re.compile('&[a-zA-Z#]')
20 entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]')
21 charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]')
23 starttagopen = re.compile('<[a-zA-Z]')
24 piclose = re.compile('>')
25 commentclose = re.compile(r'--\s*>')
26 tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9:_]*')
27 attrfind = re.compile(
[all …]
Dmimify.py38 qp = re.compile('^content-transfer-encoding:\\s*quoted-printable', re.I)
39 base64_re = re.compile('^content-transfer-encoding:\\s*base64', re.I)
40 mp = re.compile('^content-type:.*multipart/.*boundary="?([^;"\n]*)', re.I|re.S)
41 chrset = re.compile('^(content-type:.*charset=")(us-ascii|iso-8859-[0-9]+)(".*)', re.I|re.S)
42 he = re.compile('^-*\n')
43 mime_code = re.compile('=([0-9a-f][0-9a-f])', re.I)
44 mime_head = re.compile('=\\?iso-8859-1\\?q\\?([^? \t\n]+)\\?=', re.I)
45 repl = re.compile('^subject:\\s+re: ', re.I)
225 mime_char = re.compile('[=\177-\377]') # quote these chars in body
226 mime_header_char = re.compile('[=?\177-\377]') # quote these in header
[all …]
Dtextwrap.py87 wordsep_re = re.compile(
96 wordsep_simple_re = re.compile(r'(\s+)')
100 sentence_end_re = re.compile(r'[%s]' # lowercase letter
130 self.wordsep_re_uni = re.compile(self.wordsep_re.pattern, re.U)
131 self.wordsep_simple_re_uni = re.compile(
363 _whitespace_only_re = re.compile('^[ \t]+$', re.MULTILINE)
364 _leading_whitespace_re = re.compile('(^[ \t]*)(?:[^ \t\n])', re.MULTILINE)
Dxmllib.py24 illegal = re.compile('[^\t\r\n -\176\240-\377]') # illegal chars in content
25 interesting = re.compile('[]&<]')
27 amp = re.compile('&')
28 ref = re.compile('&(' + _Name + '|#[0-9]+|#x[0-9a-fA-F]+)[^-a-zA-Z0-9._:]')
29 entityref = re.compile('&(?P<name>' + _Name + ')[^-a-zA-Z0-9._:]')
30 charref = re.compile('&#(?P<char>[0-9]+[^0-9]|x[0-9a-fA-F]+[^0-9a-fA-F])')
31 space = re.compile(_S + '$')
32 newline = re.compile('\n')
34 attrfind = re.compile(
38 starttagopen = re.compile('<' + _Name)
[all …]
Dsgmllib.py24 interesting = re.compile('[&<]')
25 incomplete = re.compile('&([a-zA-Z][a-zA-Z0-9]*|#[0-9]*)?|'
30 entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]')
31 charref = re.compile('&#([0-9]+)[^0-9]')
33 starttagopen = re.compile('<[>a-zA-Z]')
34 shorttagopen = re.compile('<[a-zA-Z][-.a-zA-Z0-9]*/')
35 shorttag = re.compile('<([a-zA-Z][-.a-zA-Z0-9]*)/([^/]*)/')
36 piclose = re.compile('>')
37 endbracket = re.compile('[<>]')
38 tagfind = re.compile('[a-zA-Z][-_.a-zA-Z0-9]*')
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DHTMLParser.py16 interesting_normal = re.compile('[&<]')
17 incomplete = re.compile('&[a-zA-Z#]')
19 entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]')
20 charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]')
22 starttagopen = re.compile('<[a-zA-Z]')
23 piclose = re.compile('>')
24 commentclose = re.compile(r'--\s*>')
29 tagfind = re.compile('([a-zA-Z][^\t\n\r\f />\x00]*)(?:\s|/(?!>))*')
31 tagfind_tolerant = re.compile('[a-zA-Z][^\t\n\r\f />\x00]*')
33 attrfind = re.compile(
[all …]
Dtextwrap.py95 wordsep_re = re.compile(
104 wordsep_simple_re = re.compile(r'(\s+)')
108 sentence_end_re = re.compile(r'[%s]' # lowercase letter
138 self.wordsep_re_uni = re.compile(self.wordsep_re.pattern, re.U)
139 self.wordsep_simple_re_uni = re.compile(
371 _whitespace_only_re = re.compile('^[ \t]+$', re.MULTILINE)
372 _leading_whitespace_re = re.compile('(^[ \t]*)(?:[^ \t\n])', re.MULTILINE)
Dxmllib.py24 illegal = re.compile('[^\t\r\n -\176\240-\377]') # illegal chars in content
25 interesting = re.compile('[]&<]')
27 amp = re.compile('&')
28 ref = re.compile('&(' + _Name + '|#[0-9]+|#x[0-9a-fA-F]+)[^-a-zA-Z0-9._:]')
29 entityref = re.compile('&(?P<name>' + _Name + ')[^-a-zA-Z0-9._:]')
30 charref = re.compile('&#(?P<char>[0-9]+[^0-9]|x[0-9a-fA-F]+[^0-9a-fA-F])')
31 space = re.compile(_S + '$')
32 newline = re.compile('\n')
34 attrfind = re.compile(
38 starttagopen = re.compile('<' + _Name)
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/
DInfAsBuiltProcess.py62 RegFormatGuidPattern = re.compile("\s*([0-9a-fA-F]){8}-"
67 VersionPattern = re.compile('[\t\s]*\d+(\.\d+)?[\t\s]*')
84 ReFindFileGuidPattern = re.compile("^\s*FILE_GUID\s*=.*$")
85 ReFindVerStringPattern = re.compile("^\s*VERSION_STRING\s*=.*$")
115 RePackageHeader = re.compile('^\s*\[Packages.*\].*$')
116 ReDefineHeader = re.compile('^\s*\[Defines].*$')
264 ReFindFileGuidPattern = re.compile("^\s*FILE_GUID\s*=.*$")
265 ReFindVerStringPattern = re.compile("^\s*VERSION_STRING\s*=.*$")
DInfParserMisc.py118 gQuotedMacro = re.compile(".*\".*\$\(%s\).*\".*"%(Macro))
139 ReIsSourcesSection = re.compile("^\s*\[Sources.*\]\s.*$", re.IGNORECASE)
140 ReIsBinarySection = re.compile("^\s*\[Binaries.*\]\s.*$", re.IGNORECASE)
164 ReIsLibInstance = re.compile("^\s*##\s*@LIB_INSTANCES\s*$")
180 ReIsAsBuildInstance = re.compile("^\s*##\s*@AsBuilt\s*$")
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/
Dinstall_lib.py60 self.compile = None
77 if self.compile is None:
78 self.compile = 1
135 if self.compile:
171 if self.compile:
191 if self.compile:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dversionpredicate.py8 re_validPackage = re.compile(r"(?i)^\s*([a-z_]\w*(?:\.[a-z_]\w*)*)(.*)")
11 re_paren = re.compile(r"^\s*\((.*)\)\s*$") # (list) inside of parentheses
12 re_splitComparison = re.compile(r"^\s*(<=|>=|<|>|!=|==)\s*([^\s,]+)\s*$")
155 _provision_rx = re.compile(
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_install_lib.py22 self.assertEqual(cmd.compile, 1)
38 cmd.compile = cmd.optimize = 1
58 cmd.compile = cmd.optimize = 1
75 cmd.compile = cmd.optimize = 1
91 cmd.compile = 1

12345678910>>...16