📄 yacc.1
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:04:52 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def [psize 0 cheight slant sin slant cos div mul cheight 0 0] makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig { /SavedState save def userdict maxlength dict begin currentpoint transform DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix itransform moveto /ury exch def /urx exch def /lly exch def /llx exch def /y exch 72 mul resolution div def /x exch 72 mul resolution div def currentpoint /cy exch def /cx exch def /sx x urx llx sub div def /sy y ury lly sub div def sx sy scale cx sx div llx sub cy sy div ury sub translate /DefFigCTM matrix currentmatrix def /initmatrix { DefFigCTM setmatrix } def /defaultmatrix { DefFigCTM exch copy } def /initgraphics { DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix DefFigCTM setmatrix } def /showpage { initgraphics } def}bind def/clipFig { currentpoint 6 2 roll newpath 4 copy 4 2 roll moveto 6 -1 roll exch lineto exch lineto exch lineto closepath clip newpath moveto}bind def/doclip { llx lly urx ury clipFig } def/endFig { end SavedState restore}bind def/globalstart { fontnum psize slant height resolution currentpoint pagesave restore gsave }bind def/globalend { grestore moveto /resolution exch def /height exch def /slant exch def /psize exch def /fontnum exch def F /pagesave save def}bind def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne { exch newdict 3 1 roll put } { pop pop } % Ignore FID ifelse} forallnewdict begin/Encoding tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval cvn load def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(YACC)S1008(\()S1050(1)S1108(\))S2696(Eighth)S(Edition)296 2989 A4839(YACC)S5127(\()S5169(1)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R(yacc)185 1080 A10 R-11290(-)S10 R1372(an)S1492(LALR\(1\))S1899(parser)S2171(generator)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(yacc)S1308([)S1380(-dlrtv)S1665(])S1737([)S1809(-b)S10 I1937(\256le_pre\256x)S10 B2377(])S2449([)S2521(-p)S10 I2649(symbol_pre\256x)S10 B3251(])S10 I3323(\256lename)S1536 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1656 V10 I1080(Yacc)S10 R1314(reads)S1565(the)S1726(grammar)S2128(speci\256cation)S2675(in)S2791(the)S2952(\256le)S10 I3119(\256lename)S10 R3498(and)S3681(generates)S4100(an)S4233(LR\(1\))S4518(parser)S4803(for)S4959(it.)S5104(The)S1776 V1080(parsers)S1399(consist)S1711(of)S1828(a)S1906(set)S2051(of)S2168(LALR\(1\))S2583(parsing)S2912(tables)S3180(and)S3358(a)S3436(driver)S3710(routine)S(written)286 4028 A4347(in)S4458(the)S4614(C)S4714(programming)S1896 V(language.)388 1080 A10 I1518(Yacc)S10 R1739(normally)S2127(writes)S2399(the)S2547(parse)S2785(tables)S3045(and)S3215(the)S3363(driver)S3629(routine)S3939(to)S4042(the)S4190(\256le)S10 I4344(y.tab.c.)S2064 V10 R1080(The)S1262(following)S1678(options)S1998(are)S2147(available:)S2232 V10 B1440(-b)S10 I(file_prefix)414 1555 A2352 V10 R1800(The)S10 B1998(-b)S10 R2129(option)S2426(changes)S2791(the)S2956(pre\256x)S3233(prepended)S3694(to)S3814(the)S3979(output)S4277(\256le)S4448(names)S4747(to)S4867(the)S5032(string)S2472 V1800(denoted)S2143(by)S10 I2268(\256le_pre\256x.)S10 R2745(The)S2927(default)S3232(pre\256x)S3492(is)S3584(the)S3732(character)S10 I4128(y.)S2640 V10 B1440(-d)S10 R1800(The)S10 B1982(-d)S10 R2097(option)S2378(causes)S2666(the)S2814(header)S3108(\256le)S10 I3262(y.tab.h)S10 R3560(to)S3663(be)S(written.)311 3783 A2808 V10 B1440(-l)S10 R1800(If)S1895(the)S10 B2045(-l)S10 R2134(option)S2417(is)S2511(not)S2666(speci\256ed,)S10 I3076(yacc)S10 R(will)157 3288 A3472(insert)S3723(#line)S3951(directives)S4370(in)S4475(the)S4626(generated)S5046(code.)S2928 V1800(The)S1983(#line)S2209(directives)S2626(let)S2752(the)S2900(C)S2992(compiler)S3375(relate)S3625(errors)S3886(in)S3989(the)S4137(generated)S4554(code)S4769(to)S4872(the)S5020(user's)S3048 V1800(original)S2149(code.)S2425(If)S2529(the)S10 B2688(-l)S10 R2787(option)S3080(is)S3184(speci\256ed,)S10 I3604(yacc)S10 R(will)157 3826 A4020(not)S4185(insert)S4446(the)S4606(#line)S4844(directives.)S3168 V1800(#line)S2026(directives)S2443(speci\256ed)S2826(by)S2951(the)S3099(user)S(will)157 3292 A3474(be)S3594(retained.)S3336 V10 B1440(-p)S10 I1555(symbol_prefix)S3456 V10 R1800(The)S10 B1990(-p)S10 R2113(option)S2402(changes)S2759(the)S2916(pre\256x)S3185(prepended)S3638(to)S(yacc-generated)611 3750 A4395(symbols)S4763(to)S4875(the)S5032(string)S3576 V1800(denoted)S2143(by)S10 I2268(symbol_pre\256x.)S10 R2907(The)S3089(default)S3394(pre\256x)S3654(is)S3746(the)S3894(string)S10 I4148(yy.)S3744 V10 B1440(-r)S10 R1800(The)S10 B1984(-r)S10 R2090(option)S2373(causes)S10 I2663(yacc)S10 R2875(to)S(produce)324 2980 A3331(separate)S3689(\256les)S3884(for)S4029(code)S4246(and)S4418(tables.)S4730(The)S4914(code)S5132(\256le)S3864 V1800(is)S1892(named)S10 I2185(y.code.c,)S10 R2565(and)S2735(the)S2883(tables)S3143(\256le)S3297(is)S3389(named)S10 I3682(y.tab.c.)S4032 V10 B1440(-t)S10 R1800(The)S10 B1992(-t)S10 R2095(option)S2387(changes)S2747(the)S2906(preprocessor)S3457(directives)S3885(generated)S4313(by)S10 I4449(yacc)S10 R4670(so)S4795(that)S(debug-)279 4982 A4152 V1800(ging)S2003(statements)S(will)157 2453 A2635(be)S2755(incorporated)S3289(in)S3392(the)S3540(compiled)S3939(code.)S4320 V10 B1440(-v)S10 R1800(The)S10 B1983(-v)S10 R2093(option)S2375(causes)S2664(a)S2735(human-readable)S3410(description)S3883(of)S3994(the)S4144(generated)S4563(parser)S4837(to)S4942(be)S5064(writ-)S4440 V1800(ten)S1948(to)S2051(the)S2199(\256le)S10 I2353(y.output.)S4608 V10 R1080(If)S1174(the)S1323(environment)S1857(variable)S2208(TMPDIR)S2615(is)S2708(set,)S2871(the)S3020(string)S3275(denoted)S3619(by)S3746(TMPDIR)S(will)157 4154 A4338(be)S4460(used)S4671(as)S4782(the)S4932(name)S5177(of)S4728 V1080(the)S1228(directory)S1617(where)S1889(the)S2037(temporary)S2476(\256les)S2669(are)S2818(created.)S4896 V9 R720(F)S722(FI)S774(IL)S807(LE)S865(ES)S923(S)S5016 V10 I1080(y.code.c)S5136 V1080(y.tab.c)S5256 V1080(y.tab.h)S5376 V1080(y.output)S5496 V(/tmp/yacc.aXXXXXX)839 1080 A5616 V(/tmp/yacc.tXXXXXX)817 1080 A5736 V(/tmp/yacc.uXXXXXX)839 1080 A5904 V9 R720(D)S722(DI)S790(IA)S823(AG)S891(GN)S959(NO)S1027(OS)S1095(ST)S1147(TI)S1205(IC)S1238(CS)S1300(S)S6024 V10 R1080(If)S1173(there)S1401(are)S1551(rules)S1773(that)S1950(are)S2100(never)S2350(reduced,)S2720(the)S2869(number)S3202(of)S3312(such)S3522(rules)S3744(is)S3837(reported)S4199(on)S4325(standard)S4692(error.)S4965(If)S5059(there)S6144 V1080(are)S1229(any)S1399(LALR\(1\))S1806(con\257icts,)S2197(the)S2345(number)S2677(of)S2786(con\257icts)S3152(is)S3244(reported)S3605(on)S3730(standard)S4096(error.)S7903 V720(Page)S941(1)S2677(\()S2719(July)S2911(15,)S(1990)200 3061 A3269(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -