HomeSort by: relevance | last modified time | path
    Searched defs:lex (Results 1 - 25 of 45) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/llvm/utils/lit/tests/unit/
ShUtil.py 9 def lex(self, str, *args, **kwargs): member in class: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...]
  /src/external/mpl/bind/dist/fuzz/
isc_lex_getmastertoken.c 20 #include <isc/lex.h>
36 static isc_lex_t *lex = NULL; variable
41 isc_lex_create(mctx, 1024, &lex);
70 CHECK(isc_lex_openbuffer(lex, &buf));
73 result = isc_lex_getmastertoken(lex, &token, expect, eol);
isc_lex_gettoken.c 20 #include <isc/lex.h>
29 static isc_lex_t *lex = NULL; variable
34 isc_lex_create(mctx, 1024, &lex);
48 CHECK(isc_lex_openbuffer(lex, &buf));
52 result = isc_lex_gettoken(lex, 0, &token);
dns_rdata_fromtext.c 22 #include <isc/lex.h>
53 isc_lex_t *lex = NULL; local
73 isc_lex_create(mctx, 256, &lex);
76 * Set up to lex DNS master file.
78 isc_lex_setspecials(lex, specials);
80 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
82 RUNTIME_CHECK(isc_lex_openbuffer(lex, &inbuf) == ISC_R_SUCCESS);
84 result = isc_lex_gettoken(lex, options | ISC_LEXOPT_NUMBER, &token);
111 result = isc_lex_gettoken(lex, options | ISC_LEXOPT_NUMBER, &token);
140 result = dns_rdata_fromtext(&rdata, rdclass, rdtype, lex, name, 0, mctx
    [all...]
dns_rdata_fromwire_text.c 22 #include <isc/lex.h>
44 static isc_lex_t *lex = NULL; variable
51 isc_lex_create(mctx, 64, &lex);
58 isc_lex_setspecials(lex, specials);
59 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
169 CHECK(isc_lex_openbuffer(lex, &source));
172 result = dns_rdata_fromtext(&rdata2, rdclass, rdtype, lex, dns_rootname,
195 CHECK(isc_lex_openbuffer(lex, &source));
198 result = dns_rdata_fromtext(&rdata3, rdclass, rdtype, lex, dns_rootname,
  /src/external/apache2/llvm/dist/llvm/utils/lit/lit/
ShUtil.py 64 # Otherwise, lex the operator and convert to a redirection
150 lex_one_token - Lex a single 'sh' token. """
180 def lex(self): member in class:ShLexer
193 self.tokens = ShLexer(data, win32Escapes = win32Escapes).lex()
195 def lex(self): member in class:ShParser
201 token = self.lex()
207 tok = self.lex()
224 args.append(self.lex())
233 op = self.lex()
234 arg = self.lex()
    [all...]
  /src/external/mpl/bind/dist/bin/named/
control.c 20 #include <isc/lex.h>
40 getcommand(isc_lex_t *lex, char **cmdp) {
46 result = isc_lex_gettoken(lex, ISC_LEXOPT_EOF, &token);
51 isc_lex_ungettoken(lex, &token);
80 isc_lex_t *lex = NULL; local
101 isc_lex_create(named_g_mctx, strlen(cmdline), &lex);
105 result = isc_lex_openbuffer(lex, &src);
110 result = getcommand(lex, &command);
207 result = named_server_delzone(named_g_server, lex, text);
209 result = named_server_dnssec(named_g_server, lex, text)
    [all...]
  /src/external/mpl/bind/dist/bin/tools/
named-rrchecker.c 23 #include <isc/lex.h>
36 static isc_lex_t *lex; variable
59 if (lex != NULL) {
60 isc_lex_close(lex);
61 isc_lex_destroy(&lex);
174 isc_lex_create(mctx, 256, &lex);
177 * Set up to lex DNS master file.
183 isc_lex_setspecials(lex, specials);
185 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
187 RUNTIME_CHECK(isc_lex_openstream(lex, stdin) == ISC_R_SUCCESS)
    [all...]
  /src/external/mpl/bind/dist/tests/isc/
lex_test.c 29 #include <isc/lex.h>
40 isc_lex_t *lex = NULL; local
48 isc_lex_create(mctx, 1024, &lex);
53 result = isc_lex_openbuffer(lex, &death_buf);
56 result = isc_lex_gettoken(lex, 0, &token);
59 isc_lex_destroy(&lex);
65 isc_lex_t *lex = NULL; local
74 isc_lex_create(mctx, 1024, &lex);
79 result = isc_lex_openbuffer(lex, &buf);
82 result = isc_lex_setsourceline(lex, 100)
188 isc_lex_t *lex = NULL; local
241 isc_lex_t *lex = NULL; local
295 isc_lex_t *lex = NULL; local
    [all...]
  /src/external/gpl3/gcc/usr.bin/backend/
Makefile 125 gengtype.lo gengtype-lex.lo gengtype-parse.lo gengtype-state.lo: ${HH} gtyp-gen.h config.h options.h version.h
126 gengtype: gengtype.lo gengtype-lex.lo gengtype-parse.lo gengtype-state.lo build-errors.lo
132 COPTS.gengtype-lex.cc= -UGENERATOR_FILE -DHOST_GENERATOR_FILE
  /src/external/gpl3/gcc.old/usr.bin/backend/
Makefile 125 gengtype.lo gengtype-lex.lo gengtype-parse.lo gengtype-state.lo: ${HH} gtyp-gen.h config.h options.h version.h
126 gengtype: gengtype.lo gengtype-lex.lo gengtype-parse.lo gengtype-state.lo build-errors.lo
132 COPTS.gengtype-lex.cc= -UGENERATOR_FILE -DHOST_GENERATOR_FILE
  /src/external/mpl/bind/dist/lib/dns/
skr.c 18 #include <isc/lex.h>
30 #define READLINE(lex, opt, token)
32 #define NEXTTOKEN(lex, opt, token) \
34 CHECK(isc_lex_gettoken(lex, opt, token)); \
47 parse_rr(isc_lex_t *lex, isc_mem_t *mctx, char *owner, dns_name_t *origin,
59 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
75 NEXTTOKEN(lex, opt, &token);
83 NEXTTOKEN(lex, opt, &token);
95 NEXTTOKEN(lex, opt, &token);
118 result = dns_rdata_fromtext(*rdata, rdclass, *rdtype, lex, dname, 0
238 isc_lex_t *lex = NULL; local
    [all...]
  /src/sys/arch/atari/stand/edahdi/
edahdi.c 105 int lex(int *);
175 switch (lex(&value)) {
265 lex(int *value) function
  /src/external/apache2/llvm/dist/clang/lib/Format/
FormatTokenLexer.cpp 1 //===--- FormatTokenLexer.cpp - Lex FormatTokens -------------*- C++ ----*-===//
36 Lex.reset(new Lexer(ID, SourceMgr.getBufferOrFake(ID), SourceMgr,
38 Lex->SetKeepWhitespaceMode(true);
61 ArrayRef<FormatToken *> FormatTokenLexer::lex() { function in class:clang::format::FormatTokenLexer
519 // 'Manually' lex ahead in the current file buffer.
520 const char *Offset = Lex->getBufferLocation();
522 StringRef Buffer = Lex->getBuffer();
553 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset)));
568 Lex->getBufferLocation() - CSharpStringLiteral->TokenText.size();
577 for (; Offset != Lex->getBuffer().end(); ++Offset)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Object/
COFFModuleDefinition.cpp 92 Token lex() { function in class:llvm::object::Lexer
103 return lex();
149 : Lex(S), Machine(M), MingwDef(B) {}
162 Tok = Lex.lex();
353 Lexer Lex;
  /src/external/gpl3/gcc/dist/gcc/
graphite-dependences.cc 216 /* Return true when DEPS is non empty and the intersection of LEX with
217 the DEPS transformed by SCHEDULE is non empty. LEX is the relation
234 isl_map *lex = isl_map_lex_le (isl_space_range (space)); local
239 lex = isl_map_equate (lex, isl_dim_in, i, isl_dim_out, i);
245 lex = isl_map_add_constraint (lex, ineq);
246 lex = isl_map_coalesce (lex);
247 x = isl_map_intersect (x, lex);
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/
graphite-dependences.cc 216 /* Return true when DEPS is non empty and the intersection of LEX with
217 the DEPS transformed by SCHEDULE is non empty. LEX is the relation
234 isl_map *lex = isl_map_lex_le (isl_space_range (space)); local
239 lex = isl_map_equate (lex, isl_dim_in, i, isl_dim_out, i);
245 lex = isl_map_add_constraint (lex, ineq);
246 lex = isl_map_coalesce (lex);
247 x = isl_map_intersect (x, lex);
    [all...]
  /src/external/mpl/bind/dist/tests/libtest/
dns.c 33 #include <isc/lex.h>
346 isc_lex_t *lex = NULL; local
366 isc_lex_create(mctx, 64, &lex);
377 isc_lex_setspecials(lex, specials);
382 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
387 result = isc_lex_openbuffer(lex, &source);
408 result = dns_rdata_fromtext(rdata, rdclass, rdtype, lex, dns_rootname,
412 isc_lex_destroy(&lex);
  /src/external/mpl/bind/dist/tests/dns/
skr_test.c 30 #include <isc/lex.h>
160 isc_lex_t *lex = NULL; local
170 isc_lex_create(mctx, 64, &lex);
175 isc_lex_setspecials(lex, specials);
176 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
177 ret = isc_lex_openbuffer(lex, &source);
180 ret = dns_rdata_fromtext(rdata, dns_rdataclass_in, rdtype, lex, dname,
186 isc_lex_destroy(&lex);
  /src/bin/csh/
lex.c 1 /* $NetBSD: lex.c,v 1.38 2020/10/02 17:33:13 christos Exp $ */
35 static char sccsid[] = "@(#)lex.c 8.1 (Berkeley) 5/31/93";
37 __RCSID("$NetBSD: lex.c,v 1.38 2020/10/02 17:33:13 christos Exp $");
118 * Lex returns to its caller not only a wordlist (as a "var" parameter)
138 lex(struct wordent *hp) function
  /src/usr.bin/mail/
lex.c 1 /* $NetBSD: lex.c,v 1.47 2024/08/17 19:18:10 andvar Exp $ */
35 static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95";
37 __RCSID("$NetBSD: lex.c,v 1.47 2024/08/17 19:18:10 andvar Exp $");
586 lex(char word[]) function
665 com = lex(word);
  /src/crypto/external/apache2/openssl/dist/ssl/quic/
qlog.c 531 static int lex_init(struct lexer *lex, const char *in, size_t in_len)
536 lex->p = in;
537 lex->term_end = in;
538 lex->end = in + in_len;
542 static int lex_do(struct lexer *lex)
544 const char *p = lex->term_end, *end = lex->end, *term_end;
550 lex->p = end;
551 lex->term_end = end;
558 lex->p = p
686 struct lexer lex = { 0 }; local
    [all...]
  /src/external/gpl3/binutils/dist/gas/
app.c 92 #define IS_SYMBOL_COMPONENT(c) (lex[c] == LEX_IS_SYMBOL_COMPONENT)
93 #define IS_WHITESPACE(c) (lex[c] == LEX_IS_WHITESPACE)
94 #define IS_LINE_SEPARATOR(c) (lex[c] == LEX_IS_LINE_SEPARATOR)
95 #define IS_PARALLEL_SEPARATOR(c) (lex[c] == LEX_IS_PARALLEL_SEPARATOR)
96 #define IS_COMMENT(c) (lex[c] == LEX_IS_COMMENT_START)
97 #define IS_LINE_COMMENT(c) (lex[c] == LEX_IS_LINE_COMMENT_START)
98 #define IS_TWOCHAR_COMMENT_1ST(c) (lex[c] == LEX_IS_TWOCHAR_COMMENT_1ST)
99 #define IS_NEWLINE(c) (lex[c] == LEX_IS_NEWLINE)
101 static char lex[256] = { variable
176 if (lex['/'] == 0
    [all...]
  /src/external/gpl3/binutils.old/dist/gas/
app.c 92 #define IS_SYMBOL_COMPONENT(c) (lex[c] == LEX_IS_SYMBOL_COMPONENT)
93 #define IS_WHITESPACE(c) (lex[c] == LEX_IS_WHITESPACE)
94 #define IS_LINE_SEPARATOR(c) (lex[c] == LEX_IS_LINE_SEPARATOR)
95 #define IS_PARALLEL_SEPARATOR(c) (lex[c] == LEX_IS_PARALLEL_SEPARATOR)
96 #define IS_COMMENT(c) (lex[c] == LEX_IS_COMMENT_START)
97 #define IS_LINE_COMMENT(c) (lex[c] == LEX_IS_LINE_COMMENT_START)
98 #define IS_TWOCHAR_COMMENT_1ST(c) (lex[c] == LEX_IS_TWOCHAR_COMMENT_1ST)
99 #define IS_NEWLINE(c) (lex[c] == LEX_IS_NEWLINE)
101 static char lex[256] = { variable
176 if (lex['/'] == 0
    [all...]
  /src/external/mpl/bind/dist/lib/isc/
lex.c 1 /* $NetBSD: lex.c,v 1.12 2025/01/26 16:25:37 christos Exp $ */
26 #include <isc/lex.h>
70 grow_data(isc_lex_t *lex, size_t *remainingp, char **currp, char **prevp) {
73 tmp = isc_mem_get(lex->mctx, lex->max_token * 2 + 1);
74 memmove(tmp, lex->data, lex->max_token + 1);
75 *currp = tmp + (*currp - lex->data);
77 *prevp = tmp + (*prevp - lex->data);
79 isc_mem_put(lex->mctx, lex->data, lex->max_token + 1)
88 isc_lex_t *lex; local
118 isc_lex_t *lex; local
    [all...]

Completed in 47 milliseconds

1 2