- {
- case EOF:
- return 0;
- case '\t':
- colNum = (colNum + 7) & ~7;
- break;
- case ' ': case '\f':
- colNum += 1;
- break;
- case '\n':
- lineNum += 1;
- colNum = 0;
- break;
- default:
- {
- int tok;
-#if YYLSP_NEEDED
- yylloc.first_line = yylloc.last_line = lineNum;
- yylloc.first_column = colNum;
-#endif
- if (isalpha (c))
- {
- i = 0;
-
- do
- {
- buffer[i++] = c;
- colNum += 1;
- if (i == sizeof buffer - 1)
- abort ();
- c = getchar ();
- }
- while (isalnum (c) || c == '_');
-
- ungetc (c, stdin);
- buffer[i++] = 0;
- tok = isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
- yylval = new_term (strcpy ((char *) malloc (i), buffer));
- }
- else
- {
- colNum += 1;
- tok = c;
- yylval = 0;
- }
-#if YYLSP_NEEDED
- yylloc.last_column = colNum-1;
-#endif
- return tok;
- }
- }
+ {
+ case EOF:
+ return 0;
+ case '\t':
+ colNum = (colNum + 7) & ~7;
+ break;
+ case ' ': case '\f':
+ colNum += 1;
+ break;
+ case '\n':
+ lineNum += 1;
+ colNum = 0;
+ break;
+ default:
+ {
+ int tok;]AT_LOCATION_IF([[
+ yylloc.first_line = yylloc.last_line = lineNum;
+ yylloc.first_column = colNum;]])[
+ if (isalpha (c))
+ {
+ i = 0;
+
+ do
+ {
+ buffer[i++] = c;
+ colNum += 1;
+ assert (i != sizeof buffer - 1);
+ c = getchar ();
+ }
+ while (isalnum (c) || c == '_');
+
+ ungetc (c, stdin);
+ buffer[i++] = 0;
+ tok = isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
+ yylval = new_term (strcpy ((char *) malloc (i), buffer));
+ }
+ else
+ {
+ colNum += 1;
+ tok = c;
+ yylval = YY_NULL;
+ }]AT_LOCATION_IF([[
+ yylloc.last_column = colNum-1;]])[
+ return tok;
+ }
+ }