Home
last modified time | relevance | path

Searched refs:lex (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/external/javassist/src/main/javassist/compiler/
DParser.java21 private Lex lex; field in Parser
23 public Parser(Lex lex) { in Parser() argument
24 this.lex = lex; in Parser()
27 public boolean hasMore() { return lex.lookAhead() >= 0; } in hasMore()
46 if (lex.lookAhead() == Identifier && lex.lookAhead(1) == '(') { in parseMember1()
53 if (lex.get() != Identifier) in parseMember1()
54 throw new SyntaxError(lex); in parseMember1()
60 name = lex.getString(); in parseMember1()
63 if (isConstructor || lex.lookAhead() == '(') in parseMember1()
78 if (lex.lookAhead() == '=') { in parseField()
[all …]
/external/turbine/javatests/com/google/turbine/parse/
DLexerTest.java34 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/swiftshader/third_party/LLVM/utils/lit/lit/
DTclUtil.py152 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 …]
DShUtil.py159 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/
DShUtil.py162 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/llvm/lib/CodeGen/MIRParser/
DMIParser.cpp94 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/ply/ply/test/
Dlex_token5.py8 import ply.lex as lex namespace
27 lex.lex()
28 lex.input("1234")
29 t = lex.token()
Dlex_module.py7 import ply.lex as lex namespace
9 lex.lex(module=lex_module_import)
10 lex.runmain(data="3+4")
Dlex_many_tokens.py9 import ply.lex as lex namespace
24 lex.lex(optimize=1,lextab="manytab")
25 lex.runmain(data="TOK34: TOK143: TOK269: TOK372: TOK452: TOK561: TOK999:")
Dlex_state_try.py8 import ply.lex as lex namespace
41 lex.lex()
45 lex.runmain(data=data)
Dlex_hedit.py19 import ply.lex as lex namespace
43 lex.lex()
44 lex.runmain(data="3Habc 10Habcdefghij 2Hxy")
Dlex_optimize.py7 import ply.lex as lex namespace
46 lex.lex(optimize=1)
47 lex.runmain(data="3+4")
Dlex_closure.py7 import ply.lex as lex namespace
48 return lex.lex()
51 lex.runmain(data="3+4")
Dlex_opt_alias.py52 import ply.lex as lex namespace
53 lex.lex(optimize=1,lextab="aliastab")
54 lex.runmain(data="3+4")
Dlex_optimize2.py7 import ply.lex as lex namespace
46 lex.lex(optimize=1,lextab="opt2tab")
47 lex.runmain(data="3+4")
Dlex_optimize3.py9 import ply.lex as lex namespace
48 lex.lex(optimize=1,lextab="lexdir.sub.calctab" ,outputdir="lexdir/sub")
49 lex.runmain(data="3+4")
Dlex_object.py7 import ply.lex as lex namespace
50 lex.lex(object=calc)
51 lex.runmain(data="3+4")
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DDirectiveParser.cpp124 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/
Drun-addr2line-i-lex-test.sh35 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/
Dhedit.py46 import ply.lex as lex namespace
47 lex.lex()
48 lex.runmain()
/external/owasp/sanitizer/src/tests/org/owasp/html/
DCssTokensTest.java45 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/llvm/examples/OCaml-Kaleidoscope/Chapter2/
Dlexer.ml5 let rec lex = parser var
7 | [< ' (' ' | '\n' | '\r' | '\t'); stream >] -> lex stream
27 [< 'Token.Kwd c; lex stream >]
36 | [< stream=lex >] ->
43 | [< stream=lex >] ->
50 | [< ' ('\n'); stream=lex >] -> stream
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
Dlexer.ml5 let rec lex = parser var
7 | [< ' (' ' | '\n' | '\r' | '\t'); stream >] -> lex stream
27 [< 'Token.Kwd c; lex stream >]
36 | [< stream=lex >] ->
43 | [< stream=lex >] ->
50 | [< ' ('\n'); stream=lex >] -> stream
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
Dlexer.ml5 let rec lex = parser var
7 | [< ' (' ' | '\n' | '\r' | '\t'); stream >] -> lex stream
27 [< 'Token.Kwd c; lex stream >]
36 | [< stream=lex >] ->
43 | [< stream=lex >] ->
50 | [< ' ('\n'); stream=lex >] -> stream
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter2/
Dlexer.ml5 let rec lex = parser var
7 | [< ' (' ' | '\n' | '\r' | '\t'); stream >] -> lex stream
27 [< 'Token.Kwd c; lex stream >]
36 | [< stream=lex >] ->
43 | [< stream=lex >] ->
50 | [< ' ('\n'); stream=lex >] -> stream

12345678910>>...13