nslexer.l (248aee623cc3e95cadc710fe1668269b841e171b) | nslexer.l (70982dca889ffc7a2399c98cf27f5c3ec26647e1) |
---|---|
1%{ 2/* $NetBSD: nslexer.l,v 1.3 1999/01/25 00:16:17 lukem Exp $ */ 3 4/*- 5 * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 80 unchanged lines hidden (view full) --- 89 for (i = 0; i < strlen(p); i++) { 90 if (isupper((unsigned char)p[i])) 91 p[i] = tolower((unsigned char)p[i]); 92 } 93 _nsyylval.str = p; 94 return STRING; 95 } 96 | 1%{ 2/* $NetBSD: nslexer.l,v 1.3 1999/01/25 00:16:17 lukem Exp $ */ 3 4/*- 5 * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation --- 80 unchanged lines hidden (view full) --- 89 for (i = 0; i < strlen(p); i++) { 90 if (isupper((unsigned char)p[i])) 91 p[i] = tolower((unsigned char)p[i]); 92 } 93 _nsyylval.str = p; 94 return STRING; 95 } 96 |
97[:=\[\]] return yytext[0]; | 97. return yytext[0]; |
98 | 98 |
99. ; /* ignore all else */ 100 | |
101%% 102 103#undef _nsyywrap 104int 105_nsyywrap() 106{ 107 return 1; 108} /* _nsyywrap */ 109 110void 111_nsyyerror(msg) 112 const char *msg; 113{ 114 115 warnx("%s line %d: %s at '%s'", _PATH_NS_CONF, yylineno, msg, yytext); 116} /* _nsyyerror */ | 99%% 100 101#undef _nsyywrap 102int 103_nsyywrap() 104{ 105 return 1; 106} /* _nsyywrap */ 107 108void 109_nsyyerror(msg) 110 const char *msg; 111{ 112 113 warnx("%s line %d: %s at '%s'", _PATH_NS_CONF, yylineno, msg, yytext); 114} /* _nsyyerror */ |