devel/re2c 4.6 FreeBSD
Lexer generator for C, C++ and Go with a focus on generating fast code
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
37c8ca2a2e- License
- PD
- Categories
- devel
- Package size
- 1253.9 KiB, 18392.4 KiB installed
Description
Re2c is a free and open-source lexer generator for C, C++ and Go with a focus on generating fast code. It compiles regular expression specifications to deterministic finite automata and encodes them in the form of conditional jumps in the target language. This approach is generally faster than table-based lexers, and the generated code is easier to debug and understand. A flexible user interface allows one to adapt the generated lexer to a particular environment and input model, avoiding the overhead on unnecessary checks and buffers. Re2c is based on the lookahead TDFA algorithm that allows it to perform fast and lightweight submatch extraction.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/re2c | 4.6 |
| OpenBSD | devel/re2c | 4.6 |
| NetBSD | devel/re2c | 4.6 |
| DragonFly | devel/re2c | 4.1 |
| MidnightBSD | devel/re2c | 4.1_1 |
Install
Binary package:
pkg install re2c
From the ports tree:
cd /usr/ports/devel/re2c/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= re2c>0:devel/re2c
LIB_DEPENDS= libre2c.so:devel/re2c
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 | 4.6 | 4.6 | 2.2 | 4.1 | 4.6 |
| FreeBSD:14:quarterly | 4.6 | 4.6 | n/a | 4.1 | 4.6 |
| FreeBSD:15:latest | 4.6 | 4.6 | n/a | 4.1 | 4.1 |
| FreeBSD:15:quarterly | 4.6 | 4.6 | n/a | n/a | n/a |
| FreeBSD:16:latest | 4.6 | 4.6 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Test 1
bash: shells/bash
The full lists below include those, and their dependencies in turn.
Build dependencies 15
Required by 39
- devel/z88dk
- lang/emilua
- lang/lfortran
- lang/php82
- lang/php83
- lang/php84
- lang/php85
- lang/php86
- lang/zephir
- mail/claws-mail-plugins
- mail/claws-mail-spamassassin
- mail/exim-sa-exim
- mail/isbg
- mail/mailscanner
- mail/mimedefang
- mail/p5-FuzzyOcr-devel
- mail/p5-qpsmtpd
- mail/py-fuglu
- mail/sa-utils
- mail/spamass-ixhash
- mail/spamass-milter
- mail/spamass-rules
- mail/spamassassin
- mail/spamassassin-devel
- mail/spamassassin-dqs
- mail/spampd
- math/clingo
- security/amavisd-milter
- security/amavisd-new
- security/mailzu
- security/openvpn-auth-ldap
- textproc/pecl-zephir_parser
- www/mod_php82
- www/mod_php83
- www/mod_php84
- www/mod_php85
- www/mod_php86
- www/php-http
- x11/rofi-calc
Configuration
Options name: devel_re2c
| Option | Default | Description |
|---|---|---|
| EXAMPLES | off | Build and/or install examples |
- USES
- cmake:testing compiler:c++11-lib cpe python:test shebangfix tar:xz
- Service scripts
- none
Files
Manual pages 12
- re2c(1)
- re2d(1)
- re2go(1)
- re2hs(1)
- re2java(1)
- re2js(1)
- re2ocaml(1)
- re2py(1)
- re2rust(1)
- re2swift(1)
- re2v(1)
- re2zig(1)
pkg-plist 594
- bin/re2c
- bin/re2d
- bin/re2go
- bin/re2hs
- bin/re2java
- bin/re2js
- bin/re2ocaml
- bin/re2py
- bin/re2rust
- bin/re2swift
- bin/re2v
- bin/re2zig
- lib/libre2c.so
- share/examples/re2c/c/01_basic.c
- share/examples/re2c/c/01_basic.re
- share/examples/re2c/c/__run_all.sh
- share/examples/re2c/c/conditions/parse_u32_blocks.c
- share/examples/re2c/c/conditions/parse_u32_blocks.re
- share/examples/re2c/c/conditions/parse_u32_conditions.c
- share/examples/re2c/c/conditions/parse_u32_conditions.re
- share/examples/re2c/c/encodings/unicode_identifier.c
- share/examples/re2c/c/encodings/unicode_identifier.re
- share/examples/re2c/c/eof/01_sentinel.c
- share/examples/re2c/c/eof/01_sentinel.re
- share/examples/re2c/c/eof/02_bounds_checking.c
- share/examples/re2c/c/eof/02_bounds_checking.re
- share/examples/re2c/c/eof/03_eof_rule.c
- share/examples/re2c/c/eof/03_eof_rule.re
- share/examples/re2c/c/eof/04_fake_sentinel.c
- share/examples/re2c/c/eof/04_fake_sentinel.re
- share/examples/re2c/c/eof/05_fake_sentinel_eof_rule.c
- share/examples/re2c/c/eof/05_fake_sentinel_eof_rule.re
- share/examples/re2c/c/fill/01_fill.c
- share/examples/re2c/c/fill/01_fill.re
- share/examples/re2c/c/fill/02_fill.c
- share/examples/re2c/c/fill/02_fill.re
- share/examples/re2c/c/generic_api/ifstream.c
- share/examples/re2c/c/generic_api/ifstream.re
- share/examples/re2c/c/headers/header.c
- share/examples/re2c/c/headers/header.re
- share/examples/re2c/c/headers/lexer/state.h
- share/examples/re2c/c/includes/definitions.h
- share/examples/re2c/c/includes/extra_rules.re.inc
- share/examples/re2c/c/includes/include.c
- share/examples/re2c/c/includes/include.re
- share/examples/re2c/c/real_world/cxx98.c
- share/examples/re2c/c/real_world/cxx98.re
- share/examples/re2c/c/reuse/braille.c
- share/examples/re2c/c/reuse/braille.re
- share/examples/re2c/c/reuse/braille.ucs2.txt
- share/examples/re2c/c/reuse/braille.utf16.txt
- share/examples/re2c/c/reuse/braille.utf32.txt
- share/examples/re2c/c/reuse/braille.utf8.txt
- share/examples/re2c/c/reuse/reuse.c
- share/examples/re2c/c/reuse/reuse.re
- share/examples/re2c/c/reuse/usedir.c
- share/examples/re2c/c/reuse/usedir.re
- share/examples/re2c/c/state/push.c
- share/examples/re2c/c/state/push.re
- share/examples/re2c/c/submatch/01_stags.c
- share/examples/re2c/c/submatch/01_stags.re
- share/examples/re2c/c/submatch/01_stags_fill.c
- share/examples/re2c/c/submatch/01_stags_fill.re
- share/examples/re2c/c/submatch/02_mtags.c
- share/examples/re2c/c/submatch/02_mtags.re
- share/examples/re2c/c/submatch/03_captures.c
- share/examples/re2c/c/submatch/03_captures.re
- share/examples/re2c/c/submatch/04_posix_captures.c
- share/examples/re2c/c/submatch/04_posix_captures.re
- share/examples/re2c/c/submatch/http_rfc7230.c
- share/examples/re2c/c/submatch/http_rfc7230.re
- share/examples/re2c/c/submatch/parse_etc_passwd.c
- share/examples/re2c/c/submatch/parse_etc_passwd.re
- share/examples/re2c/c/submatch/parse_options.c
- share/examples/re2c/c/submatch/parse_options.re
- share/examples/re2c/c/submatch/parse_records.c
- share/examples/re2c/c/submatch/parse_records.re
- share/examples/re2c/c/submatch/uri_rfc3986.c
- share/examples/re2c/c/submatch/uri_rfc3986.re
- share/examples/re2c/d/01_basic.d
- share/examples/re2c/d/01_basic.re
- share/examples/re2c/d/__run_all.sh
- share/examples/re2c/d/conditions/parse_u32_blocks.d
- share/examples/re2c/d/conditions/parse_u32_blocks.re
- share/examples/re2c/d/conditions/parse_u32_conditions.d
- share/examples/re2c/d/conditions/parse_u32_conditions.re
- share/examples/re2c/d/encodings/unicode_identifier.d
- share/examples/re2c/d/encodings/unicode_identifier.re
- share/examples/re2c/d/eof/01_sentinel.d
- share/examples/re2c/d/eof/01_sentinel.re
- share/examples/re2c/d/eof/02_bounds_checking.d
- share/examples/re2c/d/eof/02_bounds_checking.re
- share/examples/re2c/d/eof/03_eof_rule.d
- share/examples/re2c/d/eof/03_eof_rule.re
- share/examples/re2c/d/eof/04_fake_sentinel.d
- share/examples/re2c/d/eof/04_fake_sentinel.re
- share/examples/re2c/d/fill/01_fill.d
- share/examples/re2c/d/fill/01_fill.re
- share/examples/re2c/d/fill/02_fill.d
- share/examples/re2c/d/fill/02_fill.re
The first 100 are listed.
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| re2c-4.6.tar.xz | 1.923084e+06 | 75bf2696445e831d0d44e0d9f2909eeffc18c09757f222b2fb025f7e59fe130b |
Master sites 1
- https://github.com/skvadrik/re2c/releases/download/4.6/