1# Copyright (c) 1987, 1993 2# The Regents of the University of California. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 1. Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. 9# 2. Redistributions in binary form must reproduce the above copyright 10# notice, this list of conditions and the following disclaimer in the 11# documentation and/or other materials provided with the distribution. 12# 3. Neither the name of the University nor the names of its contributors 13# may be used to endorse or promote products derived from this software 14# without specific prior written permission. 15# 16# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# 28# 29# @(#)vgrindefs.src 8.1 (Berkeley) 6/6/93 30# 31 32C|c:\ 33 :pb=^\a?\d?*?\d?\p\d?\(\a?\)(\d|{):\ 34 :bb={:be=}:cb=/*:ce=*/:sb=":se=\e":lb=':\ 35 :le=\e':tl:\ 36 :kw=asm auto break case char continue default do double else enum\ 37 extern float for fortran goto if int long register return short\ 38 sizeof static struct switch typedef union unsigned void while #define\ 39 #else #endif #if #ifdef #ifndef #include #undef # define else endif\ 40 if ifdef ifndef include undef: 41model|mod|m:\ 42 :pb=^\d(space\d\p\drep)|(\p\dis|inline|public\dbeginproc):\ 43 :bb=\dbeginproc|space|case\d:be=\dendproc|end\d|;:\ 44 :cb=\$:ce=\$|$:sb=":se=":lb=':le=\a|$:\ 45 :kw=abs and array beginproc boolean by case cdnl char copied dispose\ 46 div do dynamic else elsif end endproc entry external FALSE false\ 47 fi file for formal fortran global if iff ift\ 48 in integer include inline is lbnd\ 49 max min mod new NIL nil noresult not notin od of or procedure public\ 50 read readln readonly record recursive rem rep repeat res\ 51 result return set\ 52 space string subscript such then TRUE true type ubnd union until\ 53 varies while width: 54pascal|pasc|p:\ 55 :pb=(^\d?procedure|function|program\d\p\d|\(|;|\:)|(=\d?record\d):\ 56 :bb=\dcase|begin\d:be=\dend|forward\d|;:\ 57 :cb={:ce=}:\ 58 :ab=\(*:ae=*\):\ 59 :sb=':se=':\ 60 :kw=and array assert begin case const div do downto else end file for\ 61 forward function goto if in label mod nil not of or packed procedure\ 62 program record repeat set then to type until var while with oct hex\ 63 external: 64ISP|isp|i:\ 65 :cb=!:ce=!|$:oc:\ 66 :kw=and begin decode define end eql eqv geq gtr if leave leq lss mod\ 67 neq next not or otherwise repeat restart resume sr0 sr1 srd srr sl0 sl1\ 68 sld slr tst xor: 69SH|sh:\ 70 :bb={:be=}:cb=#:ce=$:sb=":se=\e":lb=':\ 71 :le=\e':tl:\ 72 :kw=break case cd continue do done \ 73 elif else esac eval exec exit export \ 74 fi for if in then while until \ 75 read readonly set shift test trap umask wait: 76CSH|csh:\ 77 :bb={:be=}:cb=#:ce=$:sb=":se=\e":lb=':\ 78 :le=\e':tl:\ 79 :kw=alias alloc break breaksw case cd chdir continue default\ 80 echo else end endif endsw exec exit foreach \ 81 glob goto history if logout nice nohup onintr repeat set\ 82 setenv shift source switch then time \ 83 while umask unalias unset wait while @ env \ 84 argv child home ignoreeof noclobber noglob \ 85 nomatch path prompt shell status verbose : 86ldl|LDL:\ 87 :pb=^\p\::bb=\::be=;:cb=/*:ce=*/:sb=":se=\e":\ 88 :kw=constant functions grammar reswords tokens add1 addste\ 89 car cdr check colno cond cons copy defun divide empty enter\ 90 eq equal findattr firstchild ge getattr getfield gt hash label\ 91 lambda lastchild le leftsibling lookone lookup lt minus name ne\ 92 newnode nextcom nil null parent plus precnl prevcom prog progn\ 93 quote reglob return rightsibling self set setattr setfield setq\ 94 stjoin sub1 t times tnull tokno ttype: 95Icon|icon|I:\ 96 :pb=^\d?procedure\d\p\d?\(\a?\):\ 97 :bb=(^\d?procedure\d\p\d?\(\a?\))|{:be=}|(^\d?end\d?$):\ 98 :cb=#:ce=$:\ 99 :sb=":se=\e":lb=':le=\e':tl:\ 100 :kw=break by case create default do dynamic else end every external\ 101 fail global if initial local next not of procedure record\ 102 repeat return static suspend then to until using while\ 103 &ascii &clock &cset &date &dateline &errout &fail &host &input\ 104 &lcase &level &main &null &output &pos &random &source &subject\ 105 &time &trace &ucase &version: 106ratfor|rat|r:\ 107 :pb=(subroutine|function)\d\p\d?\(\a?\):\ 108 :bb=(subroutine|function)\d\p\d?\(\a?\):be=^\d?end:\ 109 :cb=#:ce=$:\ 110 :sb=":se=\e":lb=':le=\e':oc:\ 111 :kw=DRETURN DRIVER arith break case character default define do\ 112 else elsedef enddef filedes for function goto if ifdef ifelse\ 113 ifnotdef include incr integer linepointer next opeq pointer\ 114 real repeat return select string subroutine substr until: 115modula2|mod2|m2:\ 116 :pb=(^\d?(procedure|function|module)\d\p\d|\(|;|\:):\ 117 :bb=\d(begin|case|for|if|loop|record|repeat|while|with)\d:\ 118 :be=\dend|;:\ 119 :cb={:ce=}:\ 120 :ab=\(*:ae=*\):\ 121 :sb=":se=":\ 122 :oc:\ 123 :kw=and array begin by case const\ 124 definition div do else elsif end exit export\ 125 for from if implementation import in\ 126 loop mod module not of or pointer procedure qualified\ 127 record repeat return set then to type\ 128 until var while with: 129yacc|Yacc|y:\ 130 :cb=/*:ce=*/:sb=":se=\e":lb=':le=\e':tl:\ 131 :kw=%{ %} %% %union %token %type\ 132 #else #endif #if #ifdef #ifndef #include #undef # define else endif\ 133 if ifdef ifndef include undef: 134C++|c++:\ 135 :pb=^\a?\d?*?\d?\p\d?\(\a?\)(\d|{):\ 136 :bb={:be=}:cb=/*:ce=*/:ab=//:\ 137 :ae=$:sb=":se=\e":lb=':\ 138 :le=\e':tl:\ 139 :kw=asm auto break case char continue default do double else enum\ 140 extern float for fortran goto if int long register return short\ 141 sizeof static struct switch typedef union unsigned while void #define\ 142 #else #endif #if #ifdef #ifndef #include #undef # define endif\ 143 ifdef ifndef include undef defined\ 144 class const delete friend inline new operator overload private\ 145 protected public virtual: 146# 147# Hack alert: defining function calls as `alternate comments' (ab/ae) seems 148# to be the only way to avoid major confusion inside vfontedpr for calls like: 149# &packagename'function; 150# 151Perl|perl|pl:\ 152 :pb=sub\d\p\d:bb={:be=}:cb=#:ce=$:nc=\$#:tl:\ 153 :ab=&:ae=(;|\d|,):\ 154 :sb=":se=(\e"|$):lb=':le=(\e'|$):\ 155 :kw=do if unless while until else elsif for foreach continue\ 156 next redo sub last goto return die exit require: 157