📄 readme
字号:
/****************************************************************Copyright (C) AT&T 1993All Rights ReservedPermission to use, copy, modify, and distribute this software andits documentation for any purpose and without fee is herebygranted, provided that the above copyright notice appear in allcopies and that both that the copyright notice and thispermission notice and warranty disclaimer appear in supportingdocumentation, and that the name of AT&T or any of its entitiesnot be used in advertising or publicity pertaining todistribution of the software without specific, written priorpermission.AT&T DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.IN NO EVENT SHALL AT&T OR ANY OF ITS ENTITIES BE LIABLE FOR ANYSPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGESWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHERIN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OFTHIS SOFTWARE.****************************************************************/This is the version of awk described in "The AWK Programming Language",by A. V. Aho, B. W. Kernighan, and P. J. Weinberger(Addison-Wesley, 1988, ISBN 0-201-07981-X).Changes, mostly bug fixes, are listed in FIXES.If you distribute this code further, please please pleasedistribute FIXES with it. If you find errors, please reportthem to bwk@research.att.com. Thanks.The program itself is created by makewhich should produce a longish sequence ofmessages roughly like this: yacc -d awk.g.y conflicts: 43 shift/reduce, 85 reduce/reduce cc -g -c y.tab.c rm y.tab.c mv y.tab.o awk.g.o cmp -s y.tab.h prevy.tab.h || (cp y.tab.h prevy.tab.h; echo change maketab) prevy.tab.h: No such file or directory change maketab lex awk.lx.l cc -g -c lex.yy.c rm lex.yy.c mv lex.yy.o awk.lx.o cc -g -c b.c cc -g -c main.c cc -g -c parse.c cc maketab.c -o maketab ./maketab >proctab.c cc -g -c proctab.c cc -g -c tran.c cc -g -c lib.c cc -g -c run.c cc -g awk.g.o awk.lx.o b.o main.o parse.o proctab.o tran.o lib.o run.o -lmThis produces an executable a.out; you will eventuallywant to move this to some place like /usr/bin/awk.The -g option (which generates symbol table informationfor debuggers) can be disabled by removing the line CFLAGS = -gfrom the makefile. Alternatively, you might replaceit by CFLAGS = -Oif your compiler does significant optimization.NOTE: This version uses ANSI C, as you should also.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -