/external/turbine/javatests/com/google/turbine/parse/ |
D | LexerTest.java | 34 assertThat(lex("\nasd dsa\n")).containsExactly("IDENT(asd)", "IDENT(dsa)", "EOF"); in testSimple() 39 assertThat(lex("\nasd++asd\n")).containsExactly("IDENT(asd)", "INCR", "IDENT(asd)", "EOF"); in testOperator() 44 assertThat(lex("/* foo")).containsExactly("EOF"); in unterminated() 45 assertThat(lex("\" foo")).containsExactly("EOF"); in unterminated() 51 assertThat(lex("1 + 0b1000100101")) in boolLiteral() 57 assertThat(lex("1 + 01234567")) in octalLiteral() 63 assertThat(lex("0L")).containsExactly("LONG_LITERAL(0L)", "EOF"); in testLiteral() 64 assertThat(lex("0")).containsExactly("INT_LITERAL(0)", "EOF"); in testLiteral() 65 assertThat(lex("0x7fff_ffff")).containsExactly("INT_LITERAL(0x7fff_ffff)", "EOF"); in testLiteral() 66 assertThat(lex("0177_7777_7777")).containsExactly("INT_LITERAL(0177_7777_7777)", "EOF"); in testLiteral() [all …]
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | glslang_tab.cpp | 551 } lex; member 4138 …rmTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).symbol, (yyvsp[0].le… in yyparse() 4154 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse() 4155 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true… in yyparse() 4163 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse() 4164 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true… in yyparse() 4172 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true… in yyparse() 4180 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse() 4181 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true… in yyparse() 4189 parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer literal"); in yyparse() [all …]
|
/external/fonttools/Tests/feaLib/ |
D | lexer_test.py | 12 def lex(s): function 25 self.assertEqual(lex(""), []) 26 self.assertEqual(lex(" \t "), []) 29 self.assertEqual(lex("a17"), [(Lexer.NAME, "a17")]) 30 self.assertEqual(lex(".notdef"), [(Lexer.NAME, ".notdef")]) 31 self.assertEqual(lex("two.oldstyle"), [(Lexer.NAME, "two.oldstyle")]) 32 self.assertEqual(lex("_"), [(Lexer.NAME, "_")]) 33 self.assertEqual(lex("\\table"), [(Lexer.NAME, "\\table")]) 34 self.assertEqual(lex("a+*:^~!"), [(Lexer.NAME, "a+*:^~!")]) 35 self.assertEqual(lex("with-dash"), [(Lexer.NAME, "with-dash")]) [all …]
|
/external/swiftshader/third_party/LLVM/utils/lit/lit/ |
D | TclUtil.py | 152 def lex(self): member in TclLexer 172 def lex(self): member in TclExecCommand 179 next = self.lex() 186 arg = self.lex() 204 arg = self.lex() 238 self.lex() 254 def lex(self, str, *args, **kwargs): member in TestTclLexer 255 return list(TclLexer(str, *args, **kwargs).lex()) 262 self.assertEqual(self.lex('a b c'), 264 self.assertEqual(self.lex(r'a\nb\tc\ '), [all …]
|
D | ShUtil.py | 159 def lex(self): member in ShLexer 171 self.tokens = ShLexer(data, win32Escapes = win32Escapes).lex() 173 def lex(self): member in ShParser 180 next = self.lex() 186 tok = self.lex() 203 args.append(self.lex()) 212 op = self.lex() 213 arg = self.lex() 223 self.lex() 228 self.lex() [all …]
|
/external/llvm/utils/lit/lit/ |
D | ShUtil.py | 162 def lex(self): member in ShLexer 175 self.tokens = ShLexer(data, win32Escapes = win32Escapes).lex() 177 def lex(self): member in ShParser 183 token = self.lex() 189 tok = self.lex() 206 args.append(self.lex()) 215 op = self.lex() 216 arg = self.lex() 228 self.lex() 236 operator = self.lex() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/lit/tests/unit/ |
D | ShUtil.py | 9 def lex(self, str, *args, **kwargs): member in TestShLexer 10 return list(ShLexer(str, *args, **kwargs).lex()) 13 self.assertEqual(self.lex('a|b>c&d<e;f'), 18 self.assertEqual(self.lex('a2>c'), 20 self.assertEqual(self.lex('a 2>c'), 24 self.assertEqual(self.lex(""" 'a' """), 26 self.assertEqual(self.lex(""" "hello\\"world" """), 28 self.assertEqual(self.lex(""" "hello\\'world" """), 30 self.assertEqual(self.lex(""" "hello\\\\world" """), 32 self.assertEqual(self.lex(""" he"llo wo"rld """), [all …]
|
/external/llvm/lib/CodeGen/MIRParser/ |
D | MIParser.cpp | 94 void lex(unsigned SkipChar = 0); 262 void MIParser::lex(unsigned SkipChar) { in lex() function in MIParser 307 lex(); in expectAndConsume() 314 lex(); in consumeIfPresent() 326 lex(); in parseBasicBlockDefinition() 337 lex(); in parseBasicBlockDefinition() 341 lex(); in parseBasicBlockDefinition() 351 lex(); in parseBasicBlockDefinition() 387 lex(); in parseBasicBlockDefinitions() 390 lex(); in parseBasicBlockDefinitions() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/MIRParser/ |
D | MIParser.cpp | 165 void lex(unsigned SkipChar = 0); 361 void MIParser::lex(unsigned SkipChar) { in lex() function in MIParser 406 lex(); in expectAndConsume() 413 lex(); in consumeIfPresent() 425 lex(); in parseBasicBlockDefinition() 436 lex(); in parseBasicBlockDefinition() 440 lex(); in parseBasicBlockDefinition() 450 lex(); in parseBasicBlockDefinition() 486 lex(); in parseBasicBlockDefinitions() 489 lex(); in parseBasicBlockDefinitions() [all …]
|
/external/fonttools/Tests/voltLib/ |
D | lexer_test.py | 8 def lex(s): function 17 self.assertEqual(lex(""), []) 18 self.assertEqual(lex("\t"), []) 21 self.assertEqual(lex('"foo" "bar"'), 23 self.assertRaises(VoltLibError, lambda: lex('"foo\n bar"')) 26 self.assertEqual(lex('DEF_FOO bar.alt1'), 30 self.assertEqual(lex("123 -456"),
|
/external/ply/ply/test/ |
D | lex_token5.py | 8 import ply.lex as lex namespace 27 lex.lex() 28 lex.input("1234") 29 t = lex.token()
|
D | lex_module.py | 7 import ply.lex as lex namespace 9 lex.lex(module=lex_module_import) 10 lex.runmain(data="3+4")
|
D | lex_optimize4.py | 8 import ply.lex as lex namespace 25 lex.lex(optimize=True, lextab="opt4tab", reflags=re.UNICODE) 26 lex.runmain(data="3+4")
|
D | lex_many_tokens.py | 9 import ply.lex as lex namespace 24 lex.lex(optimize=1,lextab="manytab") 25 lex.runmain(data="TOK34: TOK143: TOK269: TOK372: TOK452: TOK561: TOK999:")
|
D | lex_state_try.py | 8 import ply.lex as lex namespace 41 lex.lex() 45 lex.runmain(data=data)
|
D | lex_hedit.py | 19 import ply.lex as lex namespace 43 lex.lex() 44 lex.runmain(data="3Habc 10Habcdefghij 2Hxy")
|
D | lex_optimize2.py | 7 import ply.lex as lex namespace 46 lex.lex(optimize=1,lextab="opt2tab") 47 lex.runmain(data="3+4")
|
D | lex_closure.py | 7 import ply.lex as lex namespace 48 return lex.lex() 51 lex.runmain(data="3+4")
|
D | lex_opt_alias.py | 52 import ply.lex as lex namespace 53 lex.lex(optimize=1,lextab="aliastab") 54 lex.runmain(data="3+4")
|
D | lex_optimize.py | 7 import ply.lex as lex namespace 46 lex.lex(optimize=1) 47 lex.runmain(data="3+4")
|
/external/swiftshader/src/OpenGL/compiler/preprocessor/ |
D | DirectiveParser.cpp | 124 lexer->lex(token); in skipUntilEOD() 158 void lex(Token *token) override in lex() function in pp::DefinedParser 162 mLexer->lex(token); in lex() 169 mLexer->lex(token); in lex() 173 mLexer->lex(token); in lex() 187 mLexer->lex(token); in lex() 229 void DirectiveParser::lex(Token *token) in lex() function in pp::DirectiveParser 233 mTokenizer->lex(token); in lex() 265 mTokenizer->lex(token); in parseDirective() 345 mTokenizer->lex(token); in parseDefine() [all …]
|
/external/elfutils/tests/ |
D | run-addr2line-i-lex-test.sh | 35 testfiles testfile-lex-inlines 37 testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000680 <<\… 41 testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000681 <<\… 45 testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000690 <<\… 50 testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000691 <<\… 56 testrun_compare ${abs_top_builddir}/src/addr2line -f -i -e testfile-lex-inlines 0x0000000000000680 …
|
/external/ply/ply/example/hedit/ |
D | hedit.py | 46 import ply.lex as lex namespace 47 lex.lex() 48 lex.runmain()
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | CssTokensTest.java | 45 private static CssTokens lex(String s) { in lex() method in CssTokensTest 46 CssTokens tokens = CssTokens.lex(s); in lex() 51 CssTokens.lex(tokens.normalizedCss).normalizedCss); in lex() 57 CssTokens tokens = lex("([foo[[||]])"); in testBracketIndices() 118 CssTokens tokens = lex(input); in testStringEscaping() 134 lex( in testComments() 141 assertEquals("foo/ bar/", lex("foo/bar/").normalizedCss); in testNonCommentSlash() 148 lex("||<!-- and --> are ignorable||").normalizedCss); in testCdoCdc() 151 lex("<!-\\- and -\\-> are not ignorable").normalizedCss); in testCdoCdc() 208 CssTokens tokens = lex(input); in testIdentReencoding() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/lit/lit/ |
D | ShUtil.py | 180 def lex(self): member in ShLexer 193 self.tokens = ShLexer(data, win32Escapes = win32Escapes).lex() 195 def lex(self): member in ShParser 201 token = self.lex() 207 tok = self.lex() 224 args.append(self.lex()) 233 op = self.lex() 234 arg = self.lex() 246 self.lex() 254 operator = self.lex()
|