Home
last modified time | relevance | path

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

12345678910>>...31

/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/
H A Dlex.c69 grow_data(isc_lex_t *lex, size_t *remainingp, char **currp, char **prevp) { in grow_data() argument
72 tmp = isc_mem_get(lex->mctx, lex->max_token * 2 + 1); in grow_data()
73 memmove(tmp, lex->data, lex->max_token + 1); in grow_data()
74 *currp = tmp + (*currp - lex->data); in grow_data()
76 *prevp = tmp + (*prevp - lex->data); in grow_data()
78 isc_mem_put(lex->mctx, lex->data, lex->max_token + 1); in grow_data()
79 lex->data = tmp; in grow_data()
80 *remainingp += lex->max_token; in grow_data()
81 lex->max_token *= 2; in grow_data()
87 isc_lex_t *lex; in isc_lex_create() local
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dlex.c1 /* $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); in grow_data()
74 memmove(tmp, lex->data, lex->max_token + 1); in grow_data()
75 *currp = tmp + (*currp - lex->data); in grow_data()
77 *prevp = tmp + (*prevp - lex->data); in grow_data()
79 isc_mem_put(lex in grow_data()
71 grow_data(isc_lex_t * lex,size_t * remainingp,char ** currp,char ** prevp) grow_data() argument
89 isc_lex_t *lex; isc_lex_create() local
121 isc_lex_t *lex; isc_lex_destroy() local
143 isc_lex_getcomments(isc_lex_t * lex) isc_lex_getcomments() argument
154 isc_lex_setcomments(isc_lex_t * lex,unsigned int comments) isc_lex_setcomments() argument
165 isc_lex_getspecials(isc_lex_t * lex,isc_lexspecials_t specials) isc_lex_getspecials() argument
176 isc_lex_setspecials(isc_lex_t * lex,isc_lexspecials_t specials) isc_lex_setspecials() argument
188 new_source(isc_lex_t * lex,bool is_file,bool need_close,void * input,const char * name) new_source() argument
211 isc_lex_openfile(isc_lex_t * lex,const char * filename) isc_lex_openfile() argument
234 isc_lex_openstream(isc_lex_t * lex,FILE * stream) isc_lex_openstream() argument
249 isc_lex_openbuffer(isc_lex_t * lex,isc_buffer_t * buffer) isc_lex_openbuffer() argument
264 isc_lex_close(isc_lex_t * lex) isc_lex_close() argument
324 pushandgrow(isc_lex_t * lex,inputsource * source,int c) pushandgrow() argument
345 isc_lex_gettoken(isc_lex_t * lex,unsigned int options,isc_token_t * tokenp) isc_lex_gettoken() argument
937 isc_lex_getmastertoken(isc_lex_t * lex,isc_token_t * token,isc_tokentype_t expect,bool eol) isc_lex_getmastertoken() argument
992 isc_lex_getoctaltoken(isc_lex_t * lex,isc_token_t * token,bool eol) isc_lex_getoctaltoken() argument
1024 isc_lex_ungettoken(isc_lex_t * lex,isc_token_t * tokenp) isc_lex_ungettoken() argument
1046 isc_lex_getlasttokentext(isc_lex_t * lex,isc_token_t * tokenp,isc_region_t * r) isc_lex_getlasttokentext() argument
1066 isc_lex_getsourcename(isc_lex_t * lex) isc_lex_getsourcename() argument
1080 isc_lex_getsourceline(isc_lex_t * lex) isc_lex_getsourceline() argument
1094 isc_lex_setsourcename(isc_lex_t * lex,const char * name) isc_lex_setsourcename() argument
1111 isc_lex_setsourceline(isc_lex_t * lex,unsigned long line) isc_lex_setsourceline() argument
1126 isc_lex_isfile(isc_lex_t * lex) isc_lex_isfile() argument
[all...]
/netbsd-src/external/bsd/flex/dist/examples/manual/
H A DMakefile.examples25 expr: expr.y expr.lex
27 $(LEX) expr.lex
28 $(CC) -o expr lex.yy.c y.tab.c $(ALLOCA) -ll -lm
30 front: front.y front.lex
32 $(LEX) front.lex
33 $(CC) -o front lex.yy.c y.tab.c $(ALLOCA) -ll -lm
35 numbers: numbers.lex
36 $(LEX) numbers.lex
37 $(CC) lex.yy.c -o numbers
39 dates: dates.lex
[all …]
H A DMakefile.am26 cat.lex \
27 dates.lex \
29 eof_rules.lex \
33 expr.lex \
35 front.lex \
37 j2t.lex \
38 myname.lex \
40 myname2.lex \
41 numbers.lex \
42 pas_include.lex \
[all …]
H A DMakefile.in314 cat.lex \
315 dates.lex \
317 eof_rules.lex \
321 expr.lex \
323 front.lex \
325 j2t.lex \
326 myname.lex \
328 myname2.lex \
329 numbers.lex \
330 pas_include.lex \
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isc/include/isc/
H A Dlex.h1 /* $NetBSD: lex.h,v 1.8 2025/01/26 16:25:41 christos Exp $ */
22 /*! \file isc/lex.h
23 * \brief The "lex" module provides a lightweight tokenizer. It can operate
178 isc_lex_getcomments(isc_lex_t *lex);
183 *\li 'lex' is a valid lexer.
190 isc_lex_setcomments(isc_lex_t *lex, unsigned int comments);
195 *\li 'lex' is a valid lexer.
201 isc_lex_getspecials(isc_lex_t *lex, isc_lexspecials_t specials);
206 *\li 'lex' is a valid lexer.
210 isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/
H A Dlex.h179 isc_lex_getcomments(isc_lex_t *lex);
191 isc_lex_setcomments(isc_lex_t *lex, unsigned int comments);
202 isc_lex_getspecials(isc_lex_t *lex, isc_lexspecials_t specials);
211 isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_t specials);
225 isc_lex_openfile(isc_lex_t *lex, const char *filename);
244 isc_lex_openstream(isc_lex_t *lex, FILE *stream);
259 isc_lex_openbuffer(isc_lex_t *lex, isc_buffer_t *buffer);
274 isc_lex_close(isc_lex_t *lex);
284 isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp);
310 isc_lex_getmastertoken(isc_lex_t *lex, isc_token_t *token,
[all …]
/netbsd-src/external/mpl/bind/dist/tests/isc/
H A Dlex_test.c29 #include <isc/lex.h>
40 isc_lex_t *lex = NULL; in ISC_RUN_TEST_IMPL() local
48 isc_lex_create(mctx, 1024, &lex); in ISC_RUN_TEST_IMPL()
53 result = isc_lex_openbuffer(lex, &death_buf); in ISC_RUN_TEST_IMPL()
56 result = isc_lex_gettoken(lex, 0, &token); in ISC_RUN_TEST_IMPL()
59 isc_lex_destroy(&lex); in ISC_RUN_TEST_IMPL()
65 isc_lex_t *lex = NULL; in ISC_RUN_TEST_IMPL()
74 isc_lex_create(mctx, 1024, &lex); in ISC_RUN_TEST_IMPL()
79 result = isc_lex_openbuffer(lex, &buf); in ISC_RUN_TEST_IMPL()
82 result = isc_lex_setsourceline(lex, 10 in ISC_RUN_TEST_IMPL()
66 isc_lex_t *lex = NULL; ISC_RUN_TEST_IMPL() local
190 isc_lex_t *lex = NULL; ISC_RUN_TEST_IMPL() local
244 isc_lex_t *lex = NULL; ISC_RUN_TEST_IMPL() local
299 isc_lex_t *lex = NULL; ISC_RUN_TEST_IMPL() local
[all...]
/netbsd-src/external/gpl3/binutils.old/dist/gas/
H A Dapp.c61 static char lex[256]; variable
88 #define IS_SYMBOL_COMPONENT(c) (lex[c] == LEX_IS_SYMBOL_COMPONENT)
89 #define IS_WHITESPACE(c) (lex[c] == LEX_IS_WHITESPACE)
90 #define IS_LINE_SEPARATOR(c) (lex[c] == LEX_IS_LINE_SEPARATOR)
91 #define IS_PARALLEL_SEPARATOR(c) (lex[c] == LEX_IS_PARALLEL_SEPARATOR)
92 #define IS_COMMENT(c) (lex[c] == LEX_IS_COMMENT_START)
93 #define IS_LINE_COMMENT(c) (lex[c] == LEX_IS_LINE_COMMENT_START)
94 #define IS_NEWLINE(c) (lex[c] == LEX_IS_NEWLINE)
108 lex[' '] = LEX_IS_WHITESPACE; in do_scrub_begin()
109 lex['\t'] = LEX_IS_WHITESPACE; in do_scrub_begin()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gas/
H A Dapp.c61 static char lex[256]; variable
88 #define IS_SYMBOL_COMPONENT(c) (lex[c] == LEX_IS_SYMBOL_COMPONENT)
89 #define IS_WHITESPACE(c) (lex[c] == LEX_IS_WHITESPACE)
90 #define IS_LINE_SEPARATOR(c) (lex[c] == LEX_IS_LINE_SEPARATOR)
91 #define IS_PARALLEL_SEPARATOR(c) (lex[c] == LEX_IS_PARALLEL_SEPARATOR)
92 #define IS_COMMENT(c) (lex[c] == LEX_IS_COMMENT_START)
93 #define IS_LINE_COMMENT(c) (lex[c] == LEX_IS_LINE_COMMENT_START)
94 #define IS_NEWLINE(c) (lex[c] == LEX_IS_NEWLINE)
108 lex[' '] = LEX_IS_WHITESPACE; in do_scrub_begin()
109 lex['\t'] = LEX_IS_WHITESPACE; in do_scrub_begin()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/lit/tests/unit/
H A DShUtil.py9 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp409 void lex(unsigned SkipChar = 0);
561 void MIParser::lex(unsigned SkipChar) { in lex() function in MIParser
609 lex(); in expectAndConsume()
616 lex(); in consumeIfPresent()
623 lex(); in parseSectionID()
638 lex(); in parseSectionID()
650 lex(); in parseBasicBlockDefinition()
663 lex(); in parseBasicBlockDefinition()
667 lex(); in parseBasicBlockDefinition()
671 lex(); in parseBasicBlockDefinition()
[all …]
/netbsd-src/external/mpl/bind/dist/fuzz/
H A Ddns_rdata_fromtext.c22 #include <isc/lex.h>
53 isc_lex_t *lex = NULL; in LLVMFuzzerTestOneInput()
73 isc_lex_create(mctx, 256, &lex); in LLVMFuzzerTestOneInput()
76 * Set up to lex DNS master file. in LLVMFuzzerTestOneInput()
78 isc_lex_setspecials(lex, specials); in LLVMFuzzerTestOneInput()
80 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE); in LLVMFuzzerTestOneInput()
82 RUNTIME_CHECK(isc_lex_openbuffer(lex, &inbuf) == ISC_R_SUCCESS); in LLVMFuzzerTestOneInput()
84 result = isc_lex_gettoken(lex, options | ISC_LEXOPT_NUMBER, &token); in LLVMFuzzerTestOneInput()
111 result = isc_lex_gettoken(lex, options | ISC_LEXOPT_NUMBER, &token); in LLVMFuzzerTestOneInput()
140 result = dns_rdata_fromtext(&rdata, rdclass, rdtype, lex, nam in LLVMFuzzerTestOneInput()
54 isc_lex_t *lex = NULL; LLVMFuzzerTestOneInput() local
[all...]
H A Ddns_rdata_fromwire_text.c22 #include <isc/lex.h>
44 static isc_lex_t *lex = NULL; variable
51 isc_lex_create(mctx, 64, &lex); in LLVMFuzzerInitialize()
58 isc_lex_setspecials(lex, specials); in LLVMFuzzerInitialize()
59 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE); in LLVMFuzzerInitialize()
169 CHECK(isc_lex_openbuffer(lex, &source)); in LLVMFuzzerTestOneInput()
172 result = dns_rdata_fromtext(&rdata2, rdclass, rdtype, lex, dns_rootname, in LLVMFuzzerTestOneInput()
195 CHECK(isc_lex_openbuffer(lex, &source)); in LLVMFuzzerTestOneInput()
198 result = dns_rdata_fromtext(&rdata3, rdclass, rdtype, lex, dns_rootname, in LLVMFuzzerTestOneInput()
/netbsd-src/external/bsd/file/dist/magic/magdir/
H A Dlex3 # $File: lex,v 1.6 2009/09/19 16:28:10 christos Exp $
4 # lex: file(1) magic for lex
7 0 search/100 yyprevious C program text (from lex)
11 # lex description file, from Daniel Quinlan <quinlan@yggdrasil.com>
12 0 search/1 %{ lex description text
/netbsd-src/external/mpl/bind/dist/bin/tools/
H A Dnamed-rrchecker.c23 #include <isc/lex.h>
36 static isc_lex_t *lex; variable
59 if (lex != NULL) { in cleanup()
60 isc_lex_close(lex); in cleanup()
61 isc_lex_destroy(&lex); in cleanup()
174 isc_lex_create(mctx, 256, &lex); in main()
177 * Set up to lex DNS master file. in main()
183 isc_lex_setspecials(lex, specials); in main()
185 isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE); in main()
187 RUNTIME_CHECK(isc_lex_openstream(lex, stdi in main()
[all...]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/lit/lit/
H A DShUtil.py180 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()
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Dmaster.c23 #include <isc/lex.h>
119 isc_lex_t *lex;
225 RUNTIME_CHECK(isc_lex_close(lctx->lex) == \
227 line = isc_lex_getsourceline(lctx->lex); \
229 source = isc_lex_getsourcename(lctx->lex); \
291 GETTOKEN(lctx->lex, 0, &token, true); \
293 isc_lex_ungettoken(lctx->lex, &token); \
356 gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *token, bool eol, in gettoken()
362 result = isc_lex_gettoken(lex, options, token); in gettoken()
371 isc_lex_getsourcename(lex), in gettoken()
121 isc_lex_t *lex; global() member
348 gettoken(isc_lex_t * lex,unsigned int options,isc_token_t * token,bool eol,dns_rdatacallbacks_t * callbacks) gettoken() argument
507 loadctx_create(dns_masterformat_t format,isc_mem_t * mctx,unsigned int options,uint32_t resign,dns_name_t * top,dns_rdataclass_t zclass,dns_name_t * origin,dns_rdatacallbacks_t * callbacks,isc_task_t * task,dns_loaddonefunc_t done,void * done_arg,dns_masterincludecb_t include_cb,void * include_arg,isc_lex_t * lex,dns_loadctx_t ** lctxp) loadctx_create() argument
2861 dns_master_loadlexer(isc_lex_t * lex,dns_name_t * top,dns_name_t * origin,dns_rdataclass_t zclass,unsigned int options,dns_rdatacallbacks_t * callbacks,isc_mem_t * mctx) dns_master_loadlexer() argument
2884 dns_master_loadlexerinc(isc_lex_t * lex,dns_name_t * top,dns_name_t * origin,dns_rdataclass_t zclass,unsigned int options,dns_rdatacallbacks_t * callbacks,isc_task_t * task,dns_loaddonefunc_t done,void * done_arg,dns_loadctx_t ** lctxp,isc_mem_t * mctx) dns_master_loadlexerinc() argument
[all...]
H A Ddst_parse.c40 #include <isc/lex.h>
379 dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex, in check_data()
395 #define NEXTTOKEN(lex, opt, token) \
397 ret = isc_lex_gettoken(lex, opt, token); \ in dst__privstruct_free()
402 #define READLINE(lex, opt, token) \ in dst__privstruct_free()
404 ret = isc_lex_gettoken(lex, opt, token); \ in dst__privstruct_free()
414 NEXTTOKEN(lex, opt, &token); in dst__privstruct_parse() argument
422 NEXTTOKEN(lex, opt, &token); in dst__privstruct_parse()
443 READLINE(lex, opt, &token); in dst__privstruct_parse()
448 NEXTTOKEN(lex, op in dst__privstruct_parse()
430 NEXTTOKEN(lex,opt,token) dst__privstruct_parse() argument
437 READLINE(lex,opt,token) dst__privstruct_parse() argument
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Dmaster.c121 isc_lex_t *lex; member
288 GETTOKEN(lctx->lex, 0, &token, true); \
290 isc_lex_ungettoken(lctx->lex, &token); \
354 gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *token, bool eol, in gettoken() argument
360 result = isc_lex_gettoken(lex, options, token); in gettoken()
369 isc_lex_getsourcename(lex), in gettoken()
370 isc_lex_getsourceline(lex), in gettoken()
384 file = isc_lex_getsourcename(lex); in gettoken()
385 line = isc_lex_getsourceline(lex); in gettoken()
464 if (lctx->lex != NULL && !lctx->keep_lex) { in loadctx_destroy()
[all …]
H A Ddst_parse.c416 dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex, in dst__privstruct_parse() argument
432 #define NEXTTOKEN(lex, opt, token) \ in dst__privstruct_parse() argument
434 ret = isc_lex_gettoken(lex, opt, token); \ in dst__privstruct_parse()
439 #define READLINE(lex, opt, token) \ in dst__privstruct_parse() argument
441 ret = isc_lex_gettoken(lex, opt, token); \ in dst__privstruct_parse()
451 NEXTTOKEN(lex, opt, &token); in dst__privstruct_parse()
459 NEXTTOKEN(lex, opt, &token); in dst__privstruct_parse()
480 READLINE(lex, opt, &token); in dst__privstruct_parse()
485 NEXTTOKEN(lex, opt, &token); in dst__privstruct_parse()
493 NEXTTOKEN(lex, opt | ISC_LEXOPT_NUMBER, &token); in dst__privstruct_parse()
[all …]
/netbsd-src/external/gpl2/texinfo/dist/
H A Dmissing110 lex|yacc)
240 lex|flex)
246 rm -f lex.yy.c
253 cp "$SRCFILE" lex.yy.c
258 if [ ! -f lex.yy.c ]; then
259 echo 'main() { return 0; }' >lex.yy.c
/netbsd-src/external/apache2/llvm/autoconf/autoconf/
H A Dmissing110 lex|yacc)
240 lex|flex)
246 rm -f lex.yy.c
253 cp "$SRCFILE" lex.yy.c
258 if [ ! -f lex.yy.c ]; then
259 echo 'main() { return 0; }' >lex.yy.c
/netbsd-src/external/gpl3/autoconf/dist/build-aux/
H A Dmissing119 lex*|yacc*)
240 lex*|flex*)
246 rm -f lex.yy.c
253 cp "$SRCFILE" lex.yy.c
258 if test ! -f lex.yy.c; then
259 echo 'main() { return 0; }' >lex.yy.c
/netbsd-src/external/bsd/nvi/dist/dist/
H A Dmissing119 lex*|yacc*)
240 lex*|flex*)
246 rm -f lex.yy.c
253 cp "$SRCFILE" lex.yy.c
258 if test ! -f lex.yy.c; then
259 echo 'main() { return 0; }' >lex.yy.c

12345678910>>...31