home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Tex / lgrind.zoo / lgrindefs < prev    next >
Text File  |  1992-09-28  |  12KB  |  305 lines

  1. # Database of program templates for lgrind
  2.  
  3. # $Id: lgrindefs,v 1.2 91/10/01 00:32:49 gvr Exp $
  4.  
  5. a68:\
  6.     :oc:\
  7.     :cb=\|:ce=$:ab=/*:ae=*/:\
  8.     :sb=':se=':lb=":le=":\
  9.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  10.     :kw=ascii block byte end equ globl text data word even long\
  11.     #else #endif #if #ifdef #ifndef #include #undef #define:
  12.  
  13. asm:\
  14.     :oc:\
  15.     :cb=#:ce=$:ab=/*:ae=*/:\
  16.     :sb=':se=':lb=":le=":\
  17.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  18.     :kw=ascii block byte end equ globl text data word even long\
  19.     #else #endif #if #ifdef #ifndef #include #undef #define else endif\
  20.     if ifdef ifndef include undef define:
  21.  
  22. asm68:\
  23.     :pb=(^\d?.proc\d\p\d:\
  24.     :oc:\
  25.     :cb=;:ce=$:\
  26.     :sb=':se=':lb=":le=":\
  27.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  28.     :kw=ascii block byte end equ include long proc word:
  29.  
  30. C|c:\
  31.     :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:\
  32.     :cb=/*:ce=*/:sb=":se=\e":lb=':\
  33.     :le=\e':tl:\
  34.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  35.     :kw=asm auto break case char continue default do double else enum\
  36.     extern float for fortran goto if int long register return short\
  37.     sizeof static struct switch typedef union unsigned void while #define\
  38.     #else #endif #if #ifdef #ifndef #include #undef # define else endif\
  39.     if ifdef ifndef include undef\
  40.     #pragma #elif pragma elif\
  41.     #module #dictionary module dictionary\
  42.     variant_struct variant_union\
  43.     noshare readonly globaldef globalref globalvalue main_program:
  44. #Last couple of lines are partial ANSI, plus VAX-C specific
  45.  
  46. C++|c++|CC:\
  47.     :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:\
  48.     :cb=/*:ce=*/:ab=//:ae=$:sb=":se=\e":lb=':\
  49.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  50.     :le=\e':tl:\
  51.     :kw=asm auto break case char continue default do double else enum\
  52.     extern float for fortran goto if int long register return short\
  53.     sizeof static struct switch typedef union unsigned while void #define\
  54.     #else #endif #if #ifdef #ifndef #include #undef # define endif\
  55.     ifdef ifndef include undef defined\
  56.     class const delete friend inline new operator overload private\
  57.     protected public virtual:
  58.  
  59. CSH|csh:\
  60.     :bb={:be=}:cb=#:ce=$:sb=":se=\e":lb=':\
  61.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  62.     :le=\e':tl:\
  63.     :kw=alias alloc break breaksw case cd chdir continue default\
  64.     echo else end endif endsw exec exit foreach \
  65.     glob goto history if logout nice nohup onintr repeat set\
  66.     setenv shift source switch then time \
  67.     while umask unalias unset wait while @ env \
  68.     argv child home ignoreeof noclobber noglob \
  69.     nomatch path prompt shell status verbose :
  70.  
  71. fortran|FORTRAN|f77|fc|f:\
  72.     :pb=(function|subroutine|program)\d\p\d?\(\a?\):\
  73.     :bb=(function|subroutine|program)\d\p\d?\(\a?\):be=^\dend:\
  74.     :cb=^c:\
  75.     :ce=$:\
  76.     :sb=':\
  77.     :se=':\
  78.     :oc:\
  79.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  80.     :kw=call common complex continue dimension do double else elseif\
  81.     end endif equivalence format function\
  82.     goto if include integer \
  83.     parameter precision real return stop subroutine:
  84.  
  85. Icon|icon|I:\
  86.     :pb=^\d?procedure\d\p\d?\(\a?\):\
  87.     :bb=(^\d?procedure\d\p\d?\(\a?\))|{:be=}|(^\d?end\d?$):\
  88.     :cb=#:ce=$:\
  89.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  90.     :sb=":se=\e":lb=':le=\e':tl:\
  91.     :kw=break by case create default do dynamic else end every external\
  92.     fail global if initial local next not of procedure record\
  93.     repeat return static suspend then to until using while\
  94.     &ascii &clock &cset &date &dateline &errout &fail &host &input\
  95.     &lcase &level &main &null &output &pos &random &source &subject\
  96.     &time &trace &ucase &version:
  97.  
  98. ISP|isp|i:\
  99.     :cb=!:ce=!|$:oc:\
  100.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  101.     :kw=and begin decode define end eql eqv geq gtr if leave leq lss mod\
  102.     neq next not or otherwise repeat restart resume sr0 sr1 srd\
  103.     srr sl0 sl1 sld slr tst xor:
  104.  
  105. ldl|LDL:\
  106.     :pb=^\p\::bb=\::be=;:cb=/*:ce=*/:sb=":se=\e":\
  107.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  108.     :kw=constant functions grammar reswords tokens add1 addste\
  109.     car cdr check colno cond cons copy defun divide empty enter\
  110.     eq equal findattr firstchild ge getattr getfield gt hash label\
  111.     lambda lastchild le leftsibling lookone lookup lt minus name ne\
  112.     newnode nextcom nil null parent plus precnl prevcom prog progn\
  113.     quote reglob return rightsibling self set setattr setfield setq\
  114.     stjoin sub1 t times tnull tokno ttype:
  115.  
  116. #Linda is just like C, with a couple of extra keywords.  Note:  The non-
  117. #blocking operations are included, as are the pre-defined VAX Linda-C macros.
  118. linda|l:\
  119.     :pb=^\d?*?\d?\p\d?\(\a?\)(\d|{):bb={:be=}:\
  120.     :cb=/*:ce=*/:sb=":se=\e":lb=':\
  121.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  122.     :le=\e':tl:\
  123.     :kw=asm auto break case char continue default do double else enum\
  124.     extern float for fortran goto if int long register return short\
  125.     sizeof static struct switch typedef union unsigned void while #define\
  126.     #else #endif #if #ifdef #ifndef #include #undef # define else endif\
  127.     if ifdef ifndef include undef\
  128.     #pragma #elif pragma elif #line\
  129.     #module #dictionary module dictionary\
  130.     variant_struct variant_union\
  131.     noshare readonly globaldef globalref globalvalue main_program\
  132.     in inp rd rdp out eval newtype varying nchar\
  133.     $ARR $ARRAY $ARRAY_TYPE $MAKE_ARRAY\
  134.     $STR $STRING $STRING_TYPE $SET_DIM $MAKE_STRING\
  135.     #ttcontext ttcontext:
  136.  
  137. # Use MFT (part of the MetaFontWare package) instead.
  138. mf|metafont:\
  139.     :bb={:be=}:cb=%:ce=$:\
  140.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  141.     :kw=def if else fi for step until endfor\
  142.     input let end:
  143.  
  144. #
  145. # This entry makes use of new capabilities added to support the description
  146. # of lisp-like languages (id, pl, and px).  The set of keywords given is a
  147. # matter of taste.  It would be reasonable to add all the wired functions to
  148. # the list.
  149. MLisp|ml|Emacs Mock Lisp:\
  150.     :cb=;:ce=$:lb=':le=\e':sb=":se=\e":bb=\(:be=\):\
  151.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  152.     :id=_-$#@./,%&?!^*+~`|;<>'\::\
  153.     :kw=defun if progn while:pl:px=\d\(defun:pb=^\d\(\p($|(\d\a$)):
  154.  
  155. model|mod|m:\
  156.     :pb=^\d(space\d\p\drep)|(\p\dis|inline|public\dbeginproc):\
  157.     :bb=\dbeginproc|space|case\d:be=\dendproc|end\d|;:\
  158.     :cb=\$:ce=\$|$:sb=":se=":lb=':le=\a|$:\
  159.     :kw=abs and array beginproc boolean by case cdnl char copied dispose\
  160.     div do dynamic else elsif end endproc entry external FALSE false\
  161.     fi file for formal fortran global if iff ift\
  162.     in integer include inline is lbnd\
  163.     max min mod new NIL nil noresult not notin od of or procedure public\
  164.     read readln readonly record recursive rem rep repeat res\
  165.     result return set\
  166.     space string subscript such then TRUE true type ubnd union until\
  167.     varies while width:
  168.  
  169. modula2|mod2|m2:\
  170.     :pb=(^\d?(procedure|function|module)\d\p\d|\(|;|\:):\
  171.     :bb=\d(begin|case|for|if|loop|record|repeat|while|with)\d:\
  172.     :be=\dend|;:\
  173.     :cb={:ce=}:\
  174.     :ab=\(*:ae=*\):\
  175.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  176.     :sb=":se=":\
  177.     :oc:\
  178.     :kw=and array begin by case const\
  179.     definition div do else elsif end exit export\
  180.     for from if implementation import in\
  181.     loop mod module not of or pointer procedure qualified\
  182.     record repeat return set then to type\
  183.     until var while with:
  184.  
  185. pascal|pasc|p:\
  186.     :pb=(^\d?procedure|function|program\d\p\d|\(|;|\:)|(=\d?record\d):\
  187.     :bb=\dcase|begin\d:be=\dend|forward\d|;:\
  188.     :oc:\
  189.     :cb={:ce=}:ab=\(*:ae=*\):\
  190.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  191.     :sb=':se=':lb=":le=":\
  192.     :kw=and array assert begin boolean case char const div do downto else\
  193.     end file for forward function goto if in integer label mod nil not\
  194.     of or packed procedure program record repeat set then to type\
  195.     until var while with oct hex external:
  196.  
  197. #Perl definition; snarfed from the net
  198. PERL|perl|pl:\
  199.         :pb=^\d?sub\d\p(\d|{):\
  200.     :bb={:be=}:cb=\d#:ce=$:sb=":se=\e":lb=':le=\e':\
  201.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  202.     :tl:\
  203.     :kw=if until while elsif else unless for foreach continue sub\
  204.         accept atan2 bind chdir chmod chop chown chroot close\
  205.         closedir connect cos crypt dbmclose dbmopen defined delete die\
  206.         do dump each eof eval exec exit exp fcntl fileno flock fork\
  207.         getc getlogin getpeername getpgrp getppid getpriority getpwnam\
  208.         getgrnam gethostbyname getnetbyname getprotobyname getpwuid getgrgid\
  209.         getservbyname gethostbyaddr getnetbyaddr getprotobynumber\
  210.         getservbyport getpwent getgrent gethostent getnetent getprotoent\
  211.         getservent setpwent setgrent sethostent setnetent setprotoent\
  212.         setservent endpwent endgrent endhostent endnetent endprotoent\
  213.         endservent getsockname getsockopt gmtime goto grep hex ioctl\
  214.         index int join keys kill last length link listen local localtime\
  215.         log lstat m mkdir next oct open opendir ord pack pop print printf\
  216.         push q qq rand read readdir readlink recv redo rename reset return\
  217.         reverse rewinddir rindex rmdir s seek seekdir select setpgrp send\
  218.         setpriority setsockopt shift shutdown sin sleep socket socketpair\
  219.         sort split sprintf sqrt srand stat study substr syscall system\
  220.         symlink tell telldir time times tr y umask undef unlink unpack\
  221.         unshift utime values vec wait wantarray warn write:
  222.  
  223. prolog|PROLOG:\
  224.     :bb=\:-:be=.:cb=%:ce=$:ab=/*:ae=*/:\
  225.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  226.     :sb=":se=\e":lb=':le=\e':oc:\
  227.     :kw=op mod abort ancestors arg ascii ask assert asserta assertz\
  228.     atom atomic char clause close concat consult ed ef em eof fail\
  229.     file findall write functor getc integer is length listing load name\
  230.     nl nonvar not numbervars op or pp prin print private prompt putc\
  231.     ratom read read_from_this_file rename repeat retract retractall\
  232.     save see seeing seen sh skip statistics subgoal_of system tab\
  233.     tell telling time told trace true unload untrace var write:
  234.  
  235. ps|postscript:\
  236.     :oc:\
  237.     :cb=%:ce=$:\
  238.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  239.     :sb=\(:se=\e\):\
  240.     :kw=forall array null dict begin end def store string \
  241.     exec if ifelse repeat for loop exit stop stopped quit \
  242.     start save restore gsave grestore grestoreall definefont \
  243.     newpath initgraphics erasepage showpage copypage initclip \
  244.     clip eoclip fill eofill stroke image imagemask:
  245.  
  246. r|R|ratfor:\
  247.     :pb=^\d?program|subroutine|function|(integer|real|complex|character\dfunction)\d\p\d|\(:\
  248.     :bb={:be=}:cb=#:ce=$:sb=":se=":lb=':le=':oc:\
  249.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  250.     :kw= break call case character common complex data default define\
  251.     dimension do else end equivalence external false for function go\
  252.     goto if implicit include integer logical next pause program read\
  253.     real repeat return rewind stop string subroutine switch true until\
  254.     while write:
  255.  
  256. #
  257. # It's not obvious what constitutes a "procedure definition" in Russell.
  258. # This entry doesn't even try...
  259. russell|Russell:\
  260.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  261.     :cb=\(*:ce=*\):kw=cand cor do od if fi else enum record prod union\
  262.     extend export hide with constants let use in ni val var func type\
  263.     field characters readonly:sb=":se=":lb=':le=':
  264.  
  265. SH|sh:\
  266.     :bb={:be=}:cb=#:ce=$:sb=":se=\e":lb=':\
  267.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  268.     :le=\e':tl:\
  269.     :kw=break case cd continue do done \
  270.     elif else esac eval exec exit export \
  271.     fi for if in then while until \
  272.     read readonly set shift test trap umask wait:
  273.  
  274. SOURCE|source|src:\
  275.     :kw=:
  276.  
  277. TEX|tex:\
  278.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  279.     :bb={:be=}:cb=%:ce=$:kw=\\def:
  280.  
  281. vmsasm:\
  282.     :pb=^\d?.entry\d\p(\d|,|$|;):\
  283.     :oc:\
  284.     :cb=;:ce=$:\
  285.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  286.     :sb=(.ident|.asci(x|c|d|i|z))\d:se=$:\
  287.     :kw=.address .align .ascix .ascic .ascid .ascii .asciz \
  288.     .blkx .byte .cross .debug .default .d_floating .double \
  289.     .disable .enable .end .endc .endm .endr .entry .error \
  290.     .even .external .f_floating .float .g_floating .ident .if \
  291.     .if_x .iff .irp .irpc .library .link .list .long .macro \
  292.     .mask .mcall .mdelete .mexit .narg .nchr .nlist .nocross \
  293.     .noshow .ntype .octa .odd .opdef .packed .page .print \
  294.     .psect .quad .refn .repeat .restore_psect .save_psect \
  295.     .show .signed_byte .signed_word .subtitle .title .transfer \
  296.     .warn .weak .word:
  297.  
  298. yacc|Yacc|y:\
  299.     :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
  300.     :cb=/*:ce=*/:sb=":se=\e":lb=':le=\e':tl:\
  301.     :kw=%{ %} %% %union %token %type\
  302.     #else #endif #if #ifdef #ifndef #include #undef #define else endif\
  303.     if ifdef ifndef include undef:
  304.  
  305.