lex.c (107806) | lex.c (118194) |
---|---|
1/**************************************************************** 2Copyright (C) Lucent Technologies 1997 3All Rights Reserved 4 5Permission to use, copy, modify, and distribute this software and 6its documentation for any purpose and without fee is hereby 7granted, provided that the above copyright notice appear in all 8copies and that both that the copyright notice and this --- 515 unchanged lines hidden (view full) --- 524 } else if (c == '\\') { 525 *bp++ = '\\'; 526 *bp++ = input(); 527 } else { 528 *bp++ = c; 529 } 530 } 531 *bp = 0; | 1/**************************************************************** 2Copyright (C) Lucent Technologies 1997 3All Rights Reserved 4 5Permission to use, copy, modify, and distribute this software and 6its documentation for any purpose and without fee is hereby 7granted, provided that the above copyright notice appear in all 8copies and that both that the copyright notice and this --- 515 unchanged lines hidden (view full) --- 524 } else if (c == '\\') { 525 *bp++ = '\\'; 526 *bp++ = input(); 527 } else { 528 *bp++ = c; 529 } 530 } 531 *bp = 0; |
532 if (c == 0) 533 SYNTAX("non-terminated regular expression %.10s...", buf); |
|
532 yylval.s = tostring(buf); 533 unput('/'); 534 RET(REGEXPR); 535} 536 537/* low-level lexical stuff, sort of inherited from lex */ 538 539char ebuf[300]; --- 44 unchanged lines hidden --- | 534 yylval.s = tostring(buf); 535 unput('/'); 536 RET(REGEXPR); 537} 538 539/* low-level lexical stuff, sort of inherited from lex */ 540 541char ebuf[300]; --- 44 unchanged lines hidden --- |