BSD Ports

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

SystemPortVersion
FreeBSDdevel/re2c4.6
OpenBSDdevel/re2c4.6
NetBSDdevel/re2c4.6
DragonFlydevel/re2c4.1
MidnightBSDdevel/re2c4.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.64.62.24.14.6
FreeBSD:14:quarterly4.64.6n/a4.14.6
FreeBSD:15:latest4.64.6n/a4.14.1
FreeBSD:15:quarterly4.64.6n/an/an/a
FreeBSD:16:latest4.64.6n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Test 1

The full lists below include those, and their dependencies in turn.

Build dependencies 15

Configuration

Options name: devel_re2c

OptionDefaultDescription
EXAMPLESoffBuild 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
FileSizeSHA256
re2c-4.6.tar.xz1.923084e+0675bf2696445e831d0d44e0d9f2909eeffc18c09757f222b2fb025f7e59fe130b
Master sites 1
  • https://github.com/skvadrik/re2c/releases/download/4.6/

Commit history 1

DateCommitCreditsLog message
37c8ca2a2e Po-Chuan Hsieh devel/re2c: Update to 4.6
Changes: https://github.com/skvadrik/re2c/blob/master/CHANGELOG https://re2c.org/releases/release_notes.html