Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

INTERCAL

JohnNichols
Valued Contributor III
481 Views

I now have the main loop of INTERCAL working in c++.  It has three modes, help - traditional and wimpmode. 

I think we should add some Fortran modes such as :

THECOVE --  You have selected to run in the COVE mode, .......   Jim what do you want for the rest, in 50 years people will wonder  

fprintf(stderr,"How sad... you have selected to run an INTERCAL\n");
	fprintf(stderr,"program in WIMP MODE.\n\n");
	fprintf(stderr,"This means that:\n");
	fprintf(stderr," A) Rather than the nifty input like:\n");
	fprintf(stderr,"\tONE NINER SEVEN TWO OH SIX THREE,\n");
	fprintf(stderr,"    and even niftier output like:\n");
	fprintf(stderr,"\t______\n");
	fprintf(stderr,"\tMCMLXXMMLXIII,\n");
	fprintf(stderr,"    you will have to settle for plain old number\n");
	fprintf(stderr,"    representations like 1972063; and,\n");
	fprintf(stderr," B) You are a WIMP!\n\n");
	fflush(stderr);

 

0 Kudos
3 Replies
jimdempseyatthecove
Honored Contributor III
460 Views

>>representations like 1972063

Hmm, that number is the approximate date that I started working for Digital Equipment Corporation. Though back then we were still using Roman Numerals...

(I started programming in 67/68 year of college)

My "handle" jimdempseyatthecove was originally attempted to be "Jim Dempsey at The Cove", but at that time the IDZ website didn't like the spaces and caps. "The Cove" is the familial name for my residence (home I purchased from my parents). The home resides on a cove on a lake.

0 Kudos
JohnNichols
Valued Contributor III
427 Views

 

 

fprintf(stderr,"What a choice... you have selected to run an INTERCAL\n");
	fprintf(stderr,"program in COVE MODE.\n\n");
	fprintf(stderr,"This means that:\n");
	fprintf(stderr," A) You turned north on the interstate.\n");
	fprintf(stderr," B) And you ended up at the Cove on a Lake.\n");
	fprintf(stderr,"Unfortunately INTERCAL does not do GPS or supply fishing rods\n");
	fprintf(stderr,"If you talk to the man in the house\n");
	fprintf(stderr,"he will talk Fortran. \n");
	fprintf(stderr,"Only Fortran has the Doctor and his mate in the house\n");
	fprintf(stderr,"The blue telephone box on the corner does not work, our Doctor can only time travel forward. \n");
	fprintf(stderr," C) You are lost and we are happy for you!\n\n");
	fflush(stderr);

 

 

 

 

 

0 Kudos
JohnNichols
Valued Contributor III
431 Views

There is enough there to make a good reply.  

 

0 Kudos
Reply