diff options
author | bapt <bapt@FreeBSD.org> | 2012-05-21 13:31:26 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-05-21 13:31:26 +0000 |
commit | 913116490c54faeb5b24c88cf4cb4bb2bfb9fa19 (patch) | |
tree | c752c1d24d195a334247f36888203a7e2bce0837 /contrib/byacc/descrip.mms | |
parent | 798e1b56b87cda33e4ee6dab500f91a7a6e99054 (diff) | |
parent | 26a93fe4b6432f31b18a5bdcc06b4225f525d757 (diff) | |
download | FreeBSD-src-913116490c54faeb5b24c88cf4cb4bb2bfb9fa19.zip FreeBSD-src-913116490c54faeb5b24c88cf4cb4bb2bfb9fa19.tar.gz |
Import byacc from invisible island, it brings us lots of compatibilities with
bison, keeping full compatibility with our previous yacc implementation.
Also bring the ability to create reentrant parser
This fix bin/140309 [1]
PR: bin/140309 [1]
Submitted by: Philippe Pepiot <ksh@philpep.org> [1]
Approved by: des (mentor)
MFC after: 1 month
Diffstat (limited to 'contrib/byacc/descrip.mms')
-rw-r--r-- | contrib/byacc/descrip.mms | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/byacc/descrip.mms b/contrib/byacc/descrip.mms new file mode 100644 index 0000000..0dcb70f --- /dev/null +++ b/contrib/byacc/descrip.mms @@ -0,0 +1,37 @@ +CFLAGS = /decc $(CC_OPTIONS)/Diagnostics /Define=(NDEBUG) /Object=$@ /Include=([]) + +LINKFLAGS = /map=$(MMS$TARGET_NAME)/cross_reference/exec=$(MMS$TARGET_NAME).exe + +LINKER = cc + +OBJS = closure.obj, \ + error.obj, \ + lalr.obj, \ + lr0.obj, \ + main.obj, \ + mkpar.obj, \ + output.obj, \ + reader.obj, \ + skeleton.obj, \ + symtab.obj, \ + verbose.obj, \ + warshall.obj + +PROGRAM = yacc.exe + +all : $(PROGRAM) + +$(PROGRAM) : $(OBJS) + @ write sys$output "Loading $(PROGRAM) ... " + @ $(LINK) $(LINKFLAGS) $(OBJS) + @ write sys$output "done" + +clean : + @- if f$search("*.obj") .nes. "" then delete *.obj;* + @- if f$search("*.lis") .nes. "" then delete *.lis;* + @- if f$search("*.log") .nes. "" then delete *.log;* + +clobber : clean + @- if f$search("*.exe") .nes. "" then delete *.exe;* + +$(OBJS) : defs.h |