pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/re2c



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Apr 26 19:17:44 UTC 2023

Modified Files:
        pkgsrc/devel/re2c: Makefile PLIST distinfo

Log Message:
re2c: update to 3.0.

3.0 (2022-01-27)
~~~~~~~~~~~~~~~~

- Added code generation backend for Rust:

  + Enabled with ``--lang rust`` option.
  + A new ``re2rust`` binary (built by default, or configured with
    ``--enable-rust`` Autoconf option and ``RE2C_BUILD_RE2RUST`` CMake option).

- Added options:

  + ``--loop-switch``
  + ``--no-unsafe``

- Added configurations;

  + ``re2c:label:yyloop``
  + ``re2c:unsafe``

- Renamed options to use common naming scheme. The old names are supported as
  aliases, so the change does not break existing code. Documentation has been
  updated to use new names.

  + ``--api`` is a new alias for ``--input``
  + ``--ebcdic`` is a new alias for ``--ecb``
  + ``--ucs2`` is a new alias for ``--wide-chars``
  + ``--utf32`` is a new alias for ``--unicode``
  + ``--utf16`` is a new alias for ``--utf-16``
  + ``--utf8`` is a new alias for ``--utf-8``
  + ``--header`` is a new alias for ``--type-header``

- Renamed configurations to use common naming scheme and support proper scoping
  under subcategories such as ``:define``, ``:label``, ``:variable``, etc. The
  old names are supported as aliases, so the change does not break existing
  code. Documentation has been updated to use new names.

  + ``re2c:api`` is a new alias for ``re2c:flags:input``
  + ``re2c:bit-vectors`` is a new alias for ``re2c:flags:bit-vectors``
  + ``re2c:case-insensitive`` is a new alias for ``re2c:flags:case-insensitive``
  + ``re2c:case-inverted`` is a new alias for ``re2c:flags:case-inverted``
  + ``re2c:case-ranges`` is a new alias for ``re2c:flags:case-ranges``
  + ``re2c:cond:prefix`` is a new alias for ``re2c:condprefix``
  + ``re2c:cond:enumprefix`` is a new alias for ``re2c:condenumprefix``
  + ``re2c:computed-gotos`` is a new alias for ``re2c:flags:computed-gotos``
  + ``re2c:computed-gotos:threshold`` is a new alias for ``re2c:cgoto:threshold``
  + ``re2c:debug-output`` is a new alias for ``re2c:flags:debug-output``
  + ``re2c:encoding:ebcdic`` is a new alias for ``re2c:flags:ecb``
  + ``re2c:encoding:utf32`` is a new alias for ``re2c:flags:unicode``
  + ``re2c:encoding:ucs2`` is a new alias for ``re2c:flags:wide-chars``
  + ``re2c:encoding:utf16`` is a new alias for ``re2c:flags:utf-16``
  + ``re2c:encoding:utf8`` is a new alias for ``re2c:flags:utf-8``
  + ``re2c:encoding-policy`` is a new alias for ``re2c:flags:encoding-policy``
  + ``re2c:empty-class`` is a new alias for ``re2c:flags:empty-class``
  + ``re2c:header`` is a new alias for ``re2c:flags:type-header``
  + ``re2c:label:prefix`` is a new alias for ``re2c:labelprefix``
  + ``re2c:label:yyfill`` is a new alias for ``re2c:label:yyFillLabel``
  + ``re2c:label:start`` is a new alias for ``re2c:startlabel``
  + ``re2c:nested-ifs`` is a new alias for ``re2c:flags:nested-ifs``
  + ``re2c:posix-captures`` is a new alias for ``re2c:flags:posix-captures``
  + ``re2c:tags`` is a new alias for ``re2c:flags:tags``
  + ``re2c:variable:yych:conversion`` is a new alias for ``re2c:yych:conversion``
  + ``re2c:variable:yych:emit`` is a new alias for ``re2c:yych:emit``
  + ``re2c:variable:yybm:hex`` is a new alias for ``re2c:yybm:hex``
  + ``re2c:unsafe`` is a new alias for ``re2c:flags:unsafe``

- Added directive alias ``conditions:re2c`` for ``types:re2c``.

- Multiple small changes in code generation, including some formatting changes
  that result in large diffs in the generated code:

  + Do not allocate indices for unused state labels (this results in a change in
    state enumeration), commits
    `919570c4 <https://github.com/skvadrik/re2c/commit/919570c4>`_ and
    `82b704f6 <https://github.com/skvadrik/re2c/commit/82b704f6>`_.
  + Do not generate redundant ``YYPEEK`` statements, commit
    `cca31d22 <https://github.com/skvadrik/re2c/commit/cca31d22>`_.
  + Do not generate ``YYDEBUG`` statements for unused states labels, commit
    `a46f01e6 <https://github.com/skvadrik/re2c/commit/a46f01e6>`_.
  + C backend: change formatting of switch statements, commit
    `ed88e12e <https://github.com/skvadrik/re2c/commit/ed88e12e>`_.
  + Go backend: render continuous character ranges in compact form, commit
    `09161b14 <https://github.com/skvadrik/re2c/commit/09161b14>`_.
  + Mark start and end of included .re files with line directives, commit
    `48e83fca <https://github.com/skvadrik/re2c/commit/48e83fca>`_.

- A fix to limit maximum allowed NFA and DFA size (to avoid out of memory
  crashes and stack overflows), commit
  `a3473fd7 <https://github.com/skvadrik/re2c/commit/a3473fd7>`_.

- A fix to correctly compute fixed tags in trailing context, commit
  `68e1ab71 <https://github.com/skvadrik/re2c/commit/68e1ab71>`_.

- A fix to generate non-overlapping names for s-tag and m-tag variables, commit
  `7c6b5c95 <https://github.com/skvadrik/re2c/commit/7c6b5c95>`_.

- Infrastructural: added support for CMake presets.

- Updated documentation.

- Backwards-incompatible changes that are unlikely to affect any users:

  + Restrict lexical contexts where ``%{`` is recognized as a block start,
    commit `dba7d055 <https://github.com/skvadrik/re2c/commit/dba7d055>`_.
  + Emit an error when repetition lower bound exceeds upper bound, commit
    `039c1894 <https://github.com/skvadrik/re2c/commit/039c1894>`_.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/re2c/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/re2c/PLIST
cvs rdiff -u -r1.23 -r1.24 pkgsrc/devel/re2c/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/re2c/Makefile
diff -u pkgsrc/devel/re2c/Makefile:1.26 pkgsrc/devel/re2c/Makefile:1.27
--- pkgsrc/devel/re2c/Makefile:1.26     Tue Aug 10 19:34:17 2021
+++ pkgsrc/devel/re2c/Makefile  Wed Apr 26 19:17:44 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.26 2021/08/10 19:34:17 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2023/04/26 19:17:44 wiz Exp $
 
-DISTNAME=      re2c-2.2
+DISTNAME=      re2c-3.0
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=skvadrik/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}
@@ -14,7 +14,7 @@ LICENSE=      public-domain
 USE_LANGUAGES=         c c++
 USE_TOOLS+=            bison gmake
 GNU_CONFIGURE=         yes
-# as of 2.2:
+# as of 3.0:
 # FAIL: run_tests.py
 TEST_TARGET=           check
 PYTHON_FOR_BUILD_ONLY= test

Index: pkgsrc/devel/re2c/PLIST
diff -u pkgsrc/devel/re2c/PLIST:1.2 pkgsrc/devel/re2c/PLIST:1.3
--- pkgsrc/devel/re2c/PLIST:1.2 Sun Sep 20 08:32:30 2020
+++ pkgsrc/devel/re2c/PLIST     Wed Apr 26 19:17:44 2023
@@ -1,6 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2020/09/20 08:32:30 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2023/04/26 19:17:44 wiz Exp $
 bin/re2c
 bin/re2go
+bin/re2rust
 man/man1/re2c.1
 man/man1/re2go.1
+man/man1/re2rust.1
 share/re2c/stdlib/unicode_categories.re

Index: pkgsrc/devel/re2c/distinfo
diff -u pkgsrc/devel/re2c/distinfo:1.23 pkgsrc/devel/re2c/distinfo:1.24
--- pkgsrc/devel/re2c/distinfo:1.23     Tue Oct 26 10:19:21 2021
+++ pkgsrc/devel/re2c/distinfo  Wed Apr 26 19:17:44 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.23 2021/10/26 10:19:21 nia Exp $
+$NetBSD: distinfo,v 1.24 2023/04/26 19:17:44 wiz Exp $
 
-BLAKE2s (re2c-2.2.tar.xz) = 010b841f2113f80a74e34cebe185ff42c99f53bd88c256a264c77091354d4f32
-SHA512 (re2c-2.2.tar.xz) = 8c4f18fa9a2ef6b0b5c03b73b8b7deafcbd7b17baf72e0008c9344296fcb0abeee6024d4a78ccb15b090e37ae67ddd6f2a68b4932331096328530612112ee37a
-Size (re2c-2.2.tar.xz) = 1460740 bytes
+BLAKE2s (re2c-3.0.tar.xz) = 9b8743cbbfa2c322bdbc0b9476b7bfc344a6b1122b5e48da1295918287fdb680
+SHA512 (re2c-3.0.tar.xz) = 147f5d2be36cbfe014cd0089297b4994ee95ed3179dec3c84222555636d937e2bdd22373a648efe59decf6810ce1d9d89d96908761a19aed848fa4185a3ca4cb
+Size (re2c-3.0.tar.xz) = 1441456 bytes



Home | Main Index | Thread Index | Old Index