aboutsummaryrefslogtreecommitdiff
path: root/src/lextest/scan.l
blob: 27af17e804a684601fa9d447068897e1672423b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%{
/*
		This should work, but non-patched flex 2.5.3 fails because input()
		doesn't return EOF or '\0'
		Bruce Momjian <root@candle.pha.pa.us>
*/
%}
%%
.		{
			int ch;
			while ((ch = input()) != EOF && ch != '\0')
				;
		}