lang/cocor 1.7_4 FreeBSD
Compiler generator that combines the functionality of lex and yacc
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- lang
- Package size
- 172.5 KiB, 981.6 KiB installed
Description
Coco/R combines the functionality of the well-known UNIX tools lex and yacc, to form an extremely easy to use compiler generator that generates recursive descent parsers, their associated scanners, and (in some versions) a driver program, from attributed grammars (written using EBNF syntax with attributes and semantic actions) which conform to the restrictions imposed by LL(1) parsing (rather than LALR parsing, as allowed by yacc). The user has to add modules for symbol table handling, optimization, and code generation in order to get a running compiler. Coco/R can also be used to construct other syntax-based applications that have less of a "compiler" flavour.
Coco/R is available in Oberon, Modula-2, Pascal, Delphi, C, Java and C# versions. This port only builds the C/C++ version.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | lang/cocor | 1.7_4 |
| DragonFly | lang/cocor | 1.7_4 |
Install
Binary package:
pkg install cocor
From the ports tree:
cd /usr/ports/lang/cocor/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= cocor>0:lang/cocor
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.7_4 | 1.7_4 | 1.7_3 | 1.7_4 | 1.7_4 |
| FreeBSD:14:quarterly | 1.7_4 | 1.7_4 | n/a | 1.7_4 | 1.7_4 |
| FreeBSD:15:latest | 1.7_4 | 1.7_4 | n/a | 1.7_4 | 1.7_4 |
| FreeBSD:15:quarterly | 1.7_4 | 1.7_4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.7_4 | 1.7_4 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
No port depends on this one.
Configuration
Options name: lang_cocor
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
| EXAMPLES | off | Build and/or install examples |
- USES
- dos2unix tar:tgz
- Service scripts
- none
Message after installing
Files
Manual pages 1
- cocor(1)
pkg-plist 154
- bin/cocor
- lib/cocor/cplus2/cr_abs.cpp
- lib/cocor/cplus2/cr_abs.hpp
- lib/cocor/cplus2/cr_abs.o
- lib/cocor/cplus2/cr_error.cpp
- lib/cocor/cplus2/cr_error.hpp
- lib/cocor/cplus2/cr_error.o
- lib/cocor/cplus2/cr_lib.a
- lib/cocor/cplus2/cr_parse.cpp
- lib/cocor/cplus2/cr_parse.hpp
- lib/cocor/cplus2/cr_parse.o
- lib/cocor/cplus2/cr_scan.cpp
- lib/cocor/cplus2/cr_scan.hpp
- lib/cocor/cplus2/cr_scan.o
- lib/cocor/cplus2/unix.mk
- lib/cocor/taste/crossref.c
- lib/cocor/taste/crossref.h
- lib/cocor/taste/crossref.o
- lib/cocor/taste/pretty
- lib/cocor/taste/pretty.atg
- lib/cocor/taste/pretty.c
- lib/cocor/taste/pretty.o
- lib/cocor/taste/prettyc.h
- lib/cocor/taste/prettye.h
- lib/cocor/taste/prettyp.c
- lib/cocor/taste/prettyp.h
- lib/cocor/taste/prettyp.o
- lib/cocor/taste/prettypr.c
- lib/cocor/taste/prettypr.h
- lib/cocor/taste/prettypr.o
- lib/cocor/taste/prettys.c
- lib/cocor/taste/prettys.h
- lib/cocor/taste/prettys.o
- lib/cocor/taste/taste
- lib/cocor/taste/taste.atg
- lib/cocor/taste/taste.c
- lib/cocor/taste/taste.frm
- lib/cocor/taste/taste.o
- lib/cocor/taste/tastec.h
- lib/cocor/taste/tastee.h
- lib/cocor/taste/tastep.c
- lib/cocor/taste/tastep.h
- lib/cocor/taste/tastep.o
- lib/cocor/taste/tastes.c
- lib/cocor/taste/tastes.h
- lib/cocor/taste/tastes.o
- lib/cocor/taste/tc.c
- lib/cocor/taste/tc.h
- lib/cocor/taste/tc.o
- lib/cocor/taste/test.tas
- lib/cocor/taste/tl.c
- lib/cocor/taste/tl.h
- lib/cocor/taste/tl.o
- lib/cocor/taste/unix.mk
- lib/cocor/taste/wrong.tas
- lib/cocor/taste/xref
- lib/cocor/taste/xref.atg
- lib/cocor/taste/xref.c
- lib/cocor/taste/xref.frm
- lib/cocor/taste/xref.o
- lib/cocor/taste/xrefc.h
- lib/cocor/taste/xrefe.h
- lib/cocor/taste/xrefp.c
- lib/cocor/taste/xrefp.h
- lib/cocor/taste/xrefp.o
- lib/cocor/taste/xrefs.c
- lib/cocor/taste/xrefs.h
- lib/cocor/taste/xrefs.o
- lib/cocor/taste_cp/crossref.cpp
- lib/cocor/taste_cp/crossref.hpp
- lib/cocor/taste_cp/crossref.o
- lib/cocor/taste_cp/pretty
- lib/cocor/taste_cp/pretty.atg
- lib/cocor/taste_cp/pretty.cpp
- lib/cocor/taste_cp/pretty.o
- lib/cocor/taste_cp/prettyc.hpp
- lib/cocor/taste_cp/prettye.hpp
- lib/cocor/taste_cp/prettyp.cpp
- lib/cocor/taste_cp/prettyp.hpp
- lib/cocor/taste_cp/prettyp.o
- lib/cocor/taste_cp/prettypr.cpp
- lib/cocor/taste_cp/prettypr.hpp
- lib/cocor/taste_cp/prettypr.o
- lib/cocor/taste_cp/prettys.cpp
- lib/cocor/taste_cp/prettys.hpp
- lib/cocor/taste_cp/prettys.o
- lib/cocor/taste_cp/taste
- lib/cocor/taste_cp/taste.atg
- lib/cocor/taste_cp/taste.cpp
- lib/cocor/taste_cp/taste.frm
- lib/cocor/taste_cp/taste.o
- lib/cocor/taste_cp/tastec.hpp
- lib/cocor/taste_cp/tastee.hpp
- lib/cocor/taste_cp/tastep.cpp
- lib/cocor/taste_cp/tastep.hpp
- lib/cocor/taste_cp/tastep.o
- lib/cocor/taste_cp/tastes.cpp
- lib/cocor/taste_cp/tastes.hpp
- lib/cocor/taste_cp/tastes.o
- lib/cocor/taste_cp/tc.cpp
The first 100 are listed.
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| cocorc17.tgz | 113249 | df9e3650c2c69adc68632e3350e0e7d9dd57775c869bfb4c9bec4b4eb8676e35 |
Master sites 3
- ftp://ftp.psg.com/pub/modula-2/coco/
- ftp://ftp.ssw.uni-linz.ac.at/pub/Coco/C/
- http://www.scifac.ru.ac.za/coco/
Commit history 0
No commits in the history this site was built from.