DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T a

⟦ed08326bb⟧ TextFile

    Length: 840 (0x348)
    Types: TextFile
    Names: »afm-2.lex«

Derivation

└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
    └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« 
        └─⟦ca79c7339⟧ 
            └─⟦this⟧ »DVIware/laser-setters/dvi-to-ps/TeXPS/pfd2tfm/src/afm-2.lex« 

TextFile


";"		{return (T_SEMICOLON);}
"Comment"[^\n]+$  {yylval.s = StrcpyAlloc(yytext);
		return (S_Comment);}
"Notice"[^\n]+$   {yylval.s = StrcpyAlloc(yytext);
		return (S_Notice);}

[a-zA-Z][-a-zA-Z0-9]*   {
		yylval.s = StrcpyAlloc(yytext);
		return (T_ID);
		}

[-]*[0-9]+       {
		 if (sscanf (yytext, "%d", &yylval.i) != 1)
		    Fatal ("afm-2.lex(): error scanning integer");
		 if (LexDebug) {
		    fprintf (stderr, "Integer is %d\n", yylval.i);
		    fflush (stderr);
	         }
		 return (T_INT);
	       }

[-]*[0-9]+\.[0-9]+        {
		 if (sscanf (yytext, "%lf", &yylval.d) != 1)
		   Fatal ("afm-2.lex(): error scanning float");
		 if (LexDebug) {
		   fprintf (stderr, "Floating point number is %6.2lf\n",
				yylval.d);
		   fflush (stderr);
	         }
		 return (T_FLOAT);
	       }

.               {return (T_ILLEGAL);}
%%