home *** CD-ROM | disk | FTP | other *** search
- /* $Id: Scanner.c,v 2.6 1992/08/07 15:28:42 grosch rel $ */
-
- $@ #include "$.h"
- #include <stdio.h>
-
-
- $@ $_tScanAttribute $_Attribute = {{1,0}};
-
-
- $@ int $_GetToken(void)
- {
- char ch;
-
- do
- {
- ch = getchar();
- if (ch == '\n')
- {
- $@ $_Attribute.Position.Column = 0;
- $@ $_Attribute.Position.Line++;
- }
- else
- $@ $_Attribute.Position.Column++;
- }
- while (ch == ' ' || ch == '\t' || ch == '\n');
- return(ch == -1 ? 0 : ch);
- }
-
-
- $@ void $_ErrorAttribute(short yyToken, $_tScanAttribute *yyRepairAttribute)
- {}
-