Category : Miscellaneous Language Source Code
Archive   : QTAWKU42.ZIP
Filename : ANSIRSV.EXP

 
Output of file : ANSIRSV.EXP contained in archive : QTAWKU42.ZIP
BEGIN {
#
# ANSI C reserved words
#
# expression for leader
ldr = /(^|[\s\t\*\(,])/;
# upper case letters
upr = /[A-Z]/;
# lower case letters
lwr = /[a-z]/;
# characters allowed in names
alwd = /[A-Za-z0-9_]/;
# abbreviation
f = /[fl]/;
# opening function parenthesis
o_p = /{_w}*\(/;
}
#
#
#1 reserved words
/{ldr}E{upr}{alwd}+/ { printf("%u: %s\n",FNR,$0); next; }
#
#2 reserved words
/{ldr}(is|to){lwr}{alwd}+{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#3 reserved words
/{ldr}LC_{upr}{alwd}/ { printf("%u: %s\n",FNR,$0); next; }
#
#4 reserved words
/{ldr}a(cos|sin|tan2?){f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#5 reserved words
/{ldr}(cos|sin|tan)h?{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#6 reserved words
/{ldr}(fr|ld)?exp{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#7 reserved words
/{ldr}log(10)?{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#8 reserved words
/{ldr}modf{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#9 reserved words
/{ldr}pow{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#10 reserved words
/{ldr}sqrt{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#11 reserved words
/{ldr}ceil{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#12 reserved words
/{ldr}(f|l)?abs{f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#13 reserved words
/{ldr}f(loor|mod){f}{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#14 reserved words
/{ldr}SIG_{upr}{alwd}+/ { printf("%u: %s\n",FNR,$0); next; }
#
#15 reserved words
/{ldr}(str|mem){lwr}{alwd}+{o_p}/ { printf("%u: %s\n",FNR,$0); next; }
#
#99 Variable Names Reserved by Committee for Standard Library
# ALL identifiers starting with '_'
/{ldr}_{alwd}+/ { printf("%u: %s\n",FNR,$0); }

FINAL {
printf("Lines Scanned: %lu\n",NR);
}


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : QTAWKU42.ZIP
Filename : ANSIRSV.EXP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/