| /freebsd/contrib/lyaml/ext/yaml/ |
| H A D | scanner.c | 2 * scanner.c, libyaml scanner binding for Lua 39 scanner_delete_token (lyaml_scanner *scanner) in scanner_delete_token() argument 41 if (scanner->validtoken) in scanner_delete_token() 43 yaml_token_delete (&scanner->token); in scanner_delete_token() 44 scanner->validtoken = 0; in scanner_delete_token() 65 scanner_push_tokentable (lyaml_scanner *scanner, const char *v, int n) in scanner_push_tokentable() argument 67 lua_State *L = scanner->L; in scanner_push_tokentable() 72 #define MENTRY(_s) scanner_set_mark (L, #_s, scanner->token._s) in scanner_push_tokentable() 79 scan_STREAM_START (lyaml_scanner *scanner) in scan_STREAM_START() argument 81 #define EVENTF(_f) (scanner->token.data.stream_start._f) in scan_STREAM_START() [all …]
|
| /freebsd/contrib/kyua/engine/ |
| H A D | scanner_test.cpp | 29 #include "engine/scanner.hpp" 103 /// The scanner only cares about the relative path of the test program object 131 /// Yields all test cases in the scanner for simplicity of testing. 133 /// In most of the tests below, we just care about the scanner returning the 138 /// \param scanner The scanner on which to iterate. 140 /// \return The full collection of results yielded by the scanner. 142 yield_all(engine::scanner& scanner) in yield_all() argument 145 while (!scanner.done()) { in yield_all() 146 const optional< engine::scan_result > result = scanner.yield(); in yield_all() 150 ATF_REQUIRE(!scanner.yield()); in yield_all() [all …]
|
| H A D | scanner.cpp | 29 #include "engine/scanner.hpp" 71 /// Internal implementation for the scanner class. 72 struct engine::scanner::impl : utils::noncopyable { 170 engine::scanner::scanner(const model::test_programs_vector& test_programs, in scanner() function in engine::scanner 178 engine::scanner::~scanner(void) in ~scanner() 188 engine::scanner::yield(void) in yield() 203 engine::scanner::done(void) in done() 213 engine::scanner::unused_filters(void) const in unused_filters()
|
| H A D | scanner.hpp | 29 /// \file engine/scanner.hpp 57 class scanner { class 63 scanner(const model::test_programs_vector&, const std::set< test_filter >&); 64 ~scanner(void);
|
| /freebsd/usr.bin/lex/ |
| H A D | lex.1 | 33 The Generated Scanner 34 details regarding the scanner that flex produces; 62 how to make your scanner go as fast as possible 66 scanner classes 97 for a description of a scanner to generate. 119 input specifies a scanner which whenever it encounters the string 129 scanner 130 is copied to the output, so the net effect of this scanner is 160 This scanner counts the number of characters and the number 178 /* scanner for a toy Pascal-like language */ [all …]
|
| /freebsd/contrib/flex/ |
| H A D | ONEWS | 6 - Fixed scanner skeleton so the example in the man page of 128 a flex scanner to control scanner-generation options. Most 132 in your scanner source is equivalent to always specifying 164 always-interactive generate a scanner which always 166 will be made when the scanner runs) 167 main supply a main program for the scanner, which 169 never-interactive generate a scanner which never 171 will be made when the scanner runs) 181 yywrap if unset ("%option noyywrap"), scanner does not 203 the generated scanner. Each of the following, if unset, [all …]
|
| H A D | NEWS | 32 ** scanner 64 ** scanner 79 flex to build flex again. With --disable-bootstrap, the scanner is 80 simply built by sedding the scanner source. This is friendlier to 265 scanner file (resolves bugs #1849809 and #1849805) 286 independent code. Particularly useful when including a flex scanner 315 ** some memory leaks were removed from the C++ scanner (but the C++ 316 scanner is still experimental and may change radically without 358 scanner; see manual for details 403 generating a case-insensitive scanner [all …]
|
| H A D | ChangeLog | 27 * src/flex.skl: scanner: Mention %# comments are removed when 43 * src/scan.l: scanner: Check for 0 bracecount when EOL ends quoted 49 …* src/scan.l: scanner: when bracelevel is negative, treat as zero. This really should never happe… 96 * src/flex.skl: scanner: update yy_buf_size after yyrealloc() 162 …* src/dfa.c, src/flexdef.h: scanner: compute powers of two faster. Replace the naive "for" loop i… 188 …* src/Makefile.am: build: Add dist-hook to force remake scan.c. This will ensure the flex scanner… 209 * src/regex.c: scanner: fix regcomp's error reporting, double 285 * src/flexdef.h: scanner: Add yyparse prototype 289 * src/flex.skl: scanner: move comment for consistency 293 * src/misc.c: scanner: Use array instead of pointer [all …]
|
| /freebsd/usr.sbin/jail/ |
| H A D | jailparse.y | 61 %lex-param { void *scanner } 62 %parse-param { void *scanner } 74 if (!special_param($2, scanner)) { 237 struct cflex *cflex = yyget_extra(scanner); in YYERROR_DECL() 239 if (!yyget_text(scanner)) in YYERROR_DECL() 241 cflex->cfname, yyget_lineno(scanner), s); in YYERROR_DECL() 242 else if (!yyget_text(scanner)[0]) in YYERROR_DECL() 247 cflex->cfname, yyget_lineno(scanner), in YYERROR_DECL() 248 yyget_text(scanner), s); in YYERROR_DECL() 256 special_param(struct cfparam *p, void *scanner) in special_param() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | YAMLParser.cpp | 247 class Scanner { class 249 Scanner(StringRef Input, SourceMgr &SM, bool ShowColors = true, 251 Scanner(MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors = true, 364 using SkipWhileFunc = StringRef::iterator (Scanner::*)(StringRef::iterator); 432 /// position of the scanner. 528 /// The current position of the scanner. 610 Scanner scanner(Input, SM); in dumpTokens() 612 Token T = scanner.getNext(); in dumpTokens() 694 Scanner scanne in scanTokens() 602 Scanner scanner(Input, SM); dumpTokens() local 686 Scanner scanner(Input, SM); scanTokens() local 849 Scanner::Scanner(StringRef Input, SourceMgr &sm, bool ShowColors, Scanner() function in Scanner 855 Scanner::Scanner(MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors, Scanner() function in Scanner [all...] |
| /freebsd/contrib/flex/src/ |
| H A D | options.c | 48 , /* Generate 7-bit scanner. */ 52 , /* Generate 8-bit scanner. */ 68 , /* Generate batch scanner (opposite of -I). */ 70 , /* Scanner to be called by a bison pure parser. */ 72 , /* Scanner to be called by a bison pure parser. */ 76 , /* Generate case-insensitive scanner. */ 83 , /* Generate C++ scanner class. */ 87 , /* Turn on debug mode in generated scanner. */ 125 , /* Generate interactive scanner (opposite of -B). */ 137 , /* Suppress #line directives in scanner. */ [all …]
|
| H A D | scanopt.h | 77 /* Initializes scanner and checks option list for errors. 88 /* Frees memory used by scanner. 90 int scanopt_destroy (scanopt_t * scanner); 95 * scanner - The scanner, already initialized with scanopt_init(). 100 int scanopt_usage (scanopt_t * scanner, FILE * fp, const char *usage); 105 * scanner - The scanner, already initialized with scanopt_init(). 117 int scanopt (scanopt_t * scanner, char **optarg, int *optindex);
|
| H A D | flex.skl | 23 /* A lexical scanner generated by flex */ 35 %# and affect the generation of the scanner. The possible control codes are 38 %# %# - A comment. The current line is omitted from the generated scanner. 55 %# the generated scanner as a C-style comment. This is to aid those who 127 /* The c++ scanner is a mess. The FlexLexer.h header file relies on the 130 * We will address this in a future release of flex, or omit the C++ scanner 298 m4_define( [[M4_YY_DOC_PARAM]], [[@param yyscanner The scanner object.]]) 301 are macros in the reentrant scanner. */ 423 * a 5% performance hit in a non-yylineno scanner, because yy_act is 551 * "scanner state". [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_custom.cpp | 2434 struct Scanner { struct 2435 Scanner(char *str_, const char *fmt_, size_t size_) in Scanner() argument 2535 Scanner scanner(str, fmt, size); in scan_buffer() argument 2536 while (*scanner.fmt_cur) { in scan_buffer() 2537 scanner.fmt_start = scanner.fmt_cur; in scan_buffer() 2538 scanner.width = -1; in scan_buffer() 2539 scanner.skip = false; in scan_buffer() 2543 if (*scanner.fmt_cur != '%') { in scan_buffer() 2546 for (; *(scanner.fmt_cur + 1) && *(scanner.fmt_cur + 1) != '%'; in scan_buffer() 2547 ++scanner.fmt_cur) { in scan_buffer() [all …]
|
| /freebsd/contrib/libpcap/msdos/ |
| H A D | makefile | 24 SOURCE = grammar.c scanner.c bpf_filt.c bpf_imag.c bpf_dump.c \ 62 scanner.c: scanner.l 63 flex -Ppcap_ -7 -oscanner.c scanner.l 99 @del scanner.c 124 scanner.obj: scanner.c pcap-int.h pcap.h pcap-bpf.h gencode.h \ 162 scanner.o32: scanner.c pcap-int.h pcap.h pcap-bpf.h gencode.h \
|
| H A D | makefile.dj | 14 PREREQUISITES = scanner.c grammar.c tokdefs.h version.h msdos/pkt_stub.inc 25 SOURCES = grammar.c scanner.c bpf_filter.c bpf_image.c bpf_dump.c \ 93 scanner.c: scanner.l 112 scanner.c: scanner.l 115 scanner.l: pcap-int.h pcap-namedb.h gencode.h grammar.h
|
| H A D | makefile.wc | 27 OBJS = $(OBJDIR)\grammar.obj $(OBJDIR)\scanner.obj $(OBJDIR)\pcap.obj & 72 scanner.c: scanner.l 88 @del scanner.c 114 $(OBJDIR)\scanner.obj: scanner.c pcap-int.h pcap.h pcap-bpf.h gencode.h &
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | DependencyDirectivesScanner.cpp | 62 struct Scanner { struct 63 Scanner(StringRef Input, in Scanner() function 196 bool Scanner::reportError(const char *CurPtr, unsigned Err) { in reportError() 396 void Scanner::skipLine(const char *&First, const char *const End) { in skipLine() 451 void Scanner::skipDirective(StringRef Name, const char *&First, in skipDirective() 495 bool Scanner::lexModuleDirectiveBody(DirectiveKind Kind, const char *&First, in lexModuleDirectiveBody() 518 dependency_directives_scan::Token &Scanner::lexToken(const char *&First, in lexToken() 532 Scanner::lexIncludeFilename(const char *&First, const char *const End) { in lexIncludeFilename() 544 void Scanner::lexPPDirectiveBody(const char *&First, const char *const End) { in lexPPDirectiveBody() 553 Scanner::cleanStringIfNeeded(const dependency_directives_scan::Token &Tok) { in cleanStringIfNeeded() [all …]
|
| /freebsd/contrib/kyua/drivers/ |
| H A D | list_tests.cpp | 34 #include "engine/scanner.hpp" 73 engine::scanner scanner(kyuafile.test_programs(), filters); in drive() local 75 while (!scanner.done()) { in drive() 76 const optional< engine::scan_result > result = scanner.yield(); in drive() 83 return result(scanner.unused_filters()); in drive()
|
| H A D | debug_test.cpp | 36 #include "engine/scanner.hpp" 81 engine::scanner scanner(kyuafile.test_programs(), filters); in drive() local 83 while (!match && !scanner.done()) { in drive() 84 match = scanner.yield(); in drive() 88 } else if (!scanner.done()) { in drive() 92 INV(match && scanner.done()); in drive()
|
| H A D | run_tests.cpp | 36 #include "engine/scanner.hpp" 71 /// returned by the scanner in any order, and we only want to put each test 273 engine::scanner scanner(kyuafile.test_programs(), filters); in drive() local 289 optional< engine::scan_result > match = scanner.yield(); in drive() 327 } while (!in_flight.empty() || !scanner.done()); in drive() 343 return result(scanner.unused_filters()); in drive()
|
| /freebsd/share/misc/ |
| H A D | usb_vendors | 225 0111 G55xi Printer/Scanner/Copier 232 0139 Barcode Scanner 4430 324 1001 Photo Scanner 1000 341 1151 PSC-750xi Printer/Scanner/Copier 407 1d24 Barcode scanner 541 3c05 Scanjet Professional 1000 Mobile Scanner 793 1000 Mustek BearPaw 1200 Scanner 794 1001 Mustek BearPaw 2400 Scanner 807 5623 M5623 Scanner Controller 999 0202 78XX Scanner [all …]
|
| /freebsd/sys/dev/usb/ |
| H A D | usbdevs | 1355 product AVISION 1200U 0x0268 1200U scanner 1996 product EPSON 636 0x0101 Perfection 636U / 636Photo scanner 1997 product EPSON 610 0x0103 Perfection 610 scanner 1998 product EPSON 1200 0x0104 Perfection 1200U / 1200Photo scanner 1999 product EPSON 1600 0x0107 Expression 1600 scanner 2000 product EPSON 1640 0x010a Perfection 1640SU scanner 2001 product EPSON 1240 0x010b Perfection 1240U / 1240Photo scanner 2002 product EPSON 640U 0x010c Perfection 640U scanner 2003 product EPSON 1250 0x010f Perfection 1250U / 1250Photo scanner 2004 product EPSON 1650 0x0110 Perfection 1650 scanner [all …]
|
| /freebsd/contrib/ntp/ntpd/ |
| H A D | keyword-gen.c | 2 * keyword-gen.c -- generate keyword scanner finite state machine and 285 big_scan_state sst[MAXSTATES]; /* scanner FSM state entries */ 461 * scanner state machine is built and the practice of in generate_fsm() 512 /* Define a function to create the states of the scanner. This function 565 "fatal, keyword scanner state array " in create_scan_states() 623 * creates a keywords scanner out of it. 629 u_short scanner; in create_keyword_scanner() local 633 scanner = 0; in create_keyword_scanner() 637 scanner = in create_keyword_scanner() 642 scanner); in create_keyword_scanner() [all...] |
| /freebsd/usr.bin/at/ |
| H A D | parsetime.c | 144 static char **scp; /* scanner - pointer at arglist */ 145 static char scc; /* scanner - count of remaining arguments */ 146 static char *sct; /* scanner - next char pointer in current argument */ 147 static int need; /* scanner - need to advance to next argument */ 149 static char *sc_token; /* scanner - token buffer */ 150 static size_t sc_len; /* scanner - length of token buffer */ 151 static int sc_tokid; /* scanner - token id */ 152 static int sc_tokplur; /* scanner - is token plural? */ 176 * init_scanner() sets up the scanner to eat arguments 639 * month scanner in parsetime()
|