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 s

⟦8c4fc2e11⟧ TextFile

    Length: 1039 (0x40f)
    Types: TextFile
    Names: »special-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/dvitps/src/special-2.lex« 

TextFile

[a-zA-Z][-a-zA-Z0-9]*   {
		return (T_ID);
	    }

[-]*[0-9]+  {
		 if (sscanf (yytext, "%d", &LexInt) != 1)
		    Fatal ("special-1.lex(): error scanning integer.");
		 return (T_INT);
	    }

[-]*[0-9]+\.[0-9]* { /* Two different formats of flp numbers: first one
			requires at least one digit before the period, and a period followed
			by optional digit(s). */
		 if (sscanf (yytext, "%lf", &LexDouble) != 1)
		   Fatal ("special-2.lex(): error scanning double.");
		 return (T_DOUBLE);
	    }

[-]*[0-9]*\.[0-9]+ { /* Second format of flp numbers: leading digits may be missing. */
		 if (sscanf (yytext, "%lf", &LexDouble) != 1)
		   Fatal ("special-2.lex(): error scanning double.");
		 return (T_DOUBLE);
	    }
\"[^"]*\"   {
		/* Strip off the quotes of the string.
		   Save the string in its own dynamically allocated
		   buffer. */
		SpecialStringReturn = StrncpyAlloc(yytext+1, strlen(yytext)-2);
		*(SpecialStringReturn+strlen(yytext)-2) = '\0';
		return (T_STRING_QUOTED);
	    }

.               {return (T_ILLEGAL);}
%%