/external/javassist/src/main/javassist/compiler/ |
D | Parser.java | 44 private Lex lex; field in Parser 46 public Parser(Lex lex) { in Parser() argument 47 this.lex = lex; in Parser() 50 public boolean hasMore() { return lex.lookAhead() >= 0; } in hasMore() 68 if (lex.lookAhead() == Identifier && lex.lookAhead(1) == '(') { in parseMember1() 75 if (lex.get() != Identifier) in parseMember1() 76 throw new SyntaxError(lex); in parseMember1() 82 name = lex.getString(); in parseMember1() 85 if (isConstructor || lex.lookAhead() == '(') in parseMember1() 99 if (lex.lookAhead() == '=') { in parseField() [all …]
|
/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() 45 assertThat(lex("1 + 0b1000100101")) in boolLiteral() 51 assertThat(lex("1 + 01234567")) in octalLiteral() 57 assertThat(lex("0L")).containsExactly("LONG_LITERAL(0L)", "EOF"); in testLiteral() 58 assertThat(lex("0")).containsExactly("INT_LITERAL(0)", "EOF"); in testLiteral() 59 assertThat(lex("0x7fff_ffff")).containsExactly("INT_LITERAL(0x7fff_ffff)", "EOF"); in testLiteral() 60 assertThat(lex("0177_7777_7777")).containsExactly("INT_LITERAL(0177_7777_7777)", "EOF"); in testLiteral() 61 assertThat(lex("0b0111_1111_1111_1111_1111_1111_1111_1111")) in testLiteral() 63 assertThat(lex("0x8000_0000")).containsExactly("INT_LITERAL(0x8000_0000)", "EOF"); in testLiteral() [all …]
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | glslang_tab.cpp | 4675 …rmTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).symbol, (yyvsp[0].le… in yyparse() 4701 …Node) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).loc,… in yyparse() 4709 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true… in yyparse() 4717 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse() 4718 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true… in yyparse() 4726 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyvsp[0].lex).loc, true… in yyparse() 4734 …edNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, tr… in yyparse() 4742 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse() 4743 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true… in yyparse() 4751 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | glslang_tab.cpp | 5178 …rmTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).symbol, (yyvsp[0].le… in yyparse() 5204 …Node) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).loc,… in yyparse() 5212 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true… in yyparse() 5220 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse() 5221 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true… in yyparse() 5229 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyvsp[0].lex).loc, true… in yyparse() 5237 …edNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, tr… in yyparse() 5245 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse() 5246 …TypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true… in yyparse() 5254 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse() [all …]
|
/external/fonttools/Tests/feaLib/ |
D | lexer_test.py | 11 def lex(s): function 24 self.assertEqual(lex(""), []) 25 self.assertEqual(lex(" \t "), []) 28 self.assertEqual(lex("a17"), [(Lexer.NAME, "a17")]) 29 self.assertEqual(lex(".notdef"), [(Lexer.NAME, ".notdef")]) 30 self.assertEqual(lex("two.oldstyle"), [(Lexer.NAME, "two.oldstyle")]) 31 self.assertEqual(lex("_"), [(Lexer.NAME, "_")]) 32 self.assertEqual(lex("\\table"), [(Lexer.NAME, "\\table")]) 33 self.assertEqual(lex("a+*:^~!"), [(Lexer.NAME, "a+*:^~!")]) 34 self.assertEqual(lex("with-dash"), [(Lexer.NAME, "with-dash")]) [all …]
|
/external/llvm-project/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/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-10.0/llvm/lib/CodeGen/MIRParser/ |
D | MIParser.cpp | 412 void lex(unsigned SkipChar = 0); 563 void MIParser::lex(unsigned SkipChar) { in lex() function in MIParser 611 lex(); in expectAndConsume() 618 lex(); in consumeIfPresent() 630 lex(); in parseBasicBlockDefinition() 641 lex(); in parseBasicBlockDefinition() 645 lex(); in parseBasicBlockDefinition() 655 lex(); in parseBasicBlockDefinition() 691 lex(); in parseBasicBlockDefinitions() 694 lex(); in parseBasicBlockDefinitions() [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/fonttools/Tests/voltLib/ |
D | lexer_test.py | 6 def lex(s): function 15 self.assertEqual(lex(""), []) 16 self.assertEqual(lex("\t"), []) 19 self.assertEqual(lex('"foo" "bar"'), 21 self.assertRaises(VoltLibError, lambda: lex('"foo\n bar"')) 24 self.assertEqual(lex('DEF_FOO bar.alt1'), 28 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_closure.py | 7 import ply.lex as lex namespace 48 return lex.lex() 51 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")
|
D | lex_optimize2.py | 7 import ply.lex as lex namespace 46 lex.lex(optimize=1,lextab="opt2tab") 47 lex.runmain(data="3+4")
|
/external/llvm-project/llvm/lib/CodeGen/MIRParser/ |
D | MIParser.cpp | 412 void lex(unsigned SkipChar = 0); 564 void MIParser::lex(unsigned SkipChar) { in lex() function in MIParser 612 lex(); in expectAndConsume() 619 lex(); in consumeIfPresent() 626 lex(); in parseSectionID() 641 lex(); in parseSectionID() 653 lex(); in parseBasicBlockDefinition() 666 lex(); in parseBasicBlockDefinition() 670 lex(); in parseBasicBlockDefinition() 674 lex(); in parseBasicBlockDefinition() [all …]
|
/external/javassist/src/test/javassist/compiler/ |
D | CompTest.java | 69 Lex lex = new Lex("7d 0.3d 5e-2d .3d 3e2; .4D 2e-1D;"); in testDoubleConst() local 70 assertEquals(TokenId.DoubleConstant, lex.get()); in testDoubleConst() 71 assertEquals(TokenId.DoubleConstant, lex.get()); in testDoubleConst() 72 assertEquals(TokenId.DoubleConstant, lex.get()); in testDoubleConst() 73 assertEquals(TokenId.DoubleConstant, lex.get()); in testDoubleConst() 74 assertEquals(TokenId.DoubleConstant, lex.get()); in testDoubleConst() 75 assertEquals(';', lex.get()); in testDoubleConst() 76 assertEquals(TokenId.DoubleConstant, lex.get()); in testDoubleConst() 77 assertEquals(TokenId.DoubleConstant, lex.get()); in testDoubleConst() 78 assertEquals(';', lex.get()); in testDoubleConst()
|
D | LexTest.java | 5 Lex lex = new Lex(args[0]); in main() local 7 while ((t = lex.get()) > 0) { in main() 10 System.out.print("(" + lex.getString() + ") "); in main() 12 System.out.print("(" + lex.getLong() + ") "); in main() 14 System.out.print("(" + lex.getDouble() + ") "); in main()
|
/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/ply/ply/example/hedit/ |
D | hedit.py | 46 import ply.lex as lex namespace 47 lex.lex() 48 lex.runmain()
|
/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 …
|