texlive[72652] Master/texmf-dist: naive-ebnf (25oct24)
commits+karl at tug.org
commits+karl at tug.org
Fri Oct 25 23:27:09 CEST 2024
Revision: 72652
https://tug.org/svn/texlive?view=revision&revision=72652
Author: karl
Date: 2024-10-25 23:27:09 +0200 (Fri, 25 Oct 2024)
Log Message:
-----------
naive-ebnf (25oct24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/naive-ebnf/LICENSE.txt
trunk/Master/texmf-dist/doc/latex/naive-ebnf/naive-ebnf.pdf
trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx
trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.ins
trunk/Master/texmf-dist/tex/latex/naive-ebnf/naive-ebnf.sty
Modified: trunk/Master/texmf-dist/doc/latex/naive-ebnf/LICENSE.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/naive-ebnf/LICENSE.txt 2024-10-25 21:26:59 UTC (rev 72651)
+++ trunk/Master/texmf-dist/doc/latex/naive-ebnf/LICENSE.txt 2024-10-25 21:27:09 UTC (rev 72652)
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2023 Yegor Bugayenko
+Copyright (c) 2023-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/doc/latex/naive-ebnf/naive-ebnf.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx 2024-10-25 21:26:59 UTC (rev 72651)
+++ trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.dtx 2024-10-25 21:27:09 UTC (rev 72652)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% (The MIT License)
%
-% Copyright (c) 2023 Yegor Bugayenko
+% Copyright (c) 2023-2024 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{naive-ebnf}
%<*package>
-[2024/09/06 0.0.16 EBNF in Plain Text]
+[2024/10/25 0.0.17 EBNF in Plain Text]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -246,7 +246,7 @@
% \begin{document}
% \begin{ebnf}
% <x> := "beginning" \\
-% ||| ( <y> | <z> ) \\
+% ||| ( <y> | <z> ) \\
% ||| "ending" \\
% \end{ebnf}
% \end{document}
@@ -432,16 +432,19 @@
\regex_replace_all:nnN
{ /(.+?)/ }%
{\c{ebnf at regexp}{\1}} \ebnf_tmp%
+ \cs_undefine:N\ebnf_curled%
\cs_new:Npn\ebnf_curled{%
\regex_replace_all:nnNT
{ \{\s(([^\s]*(\s[^\}\{]|\s(\}|\{)[^\s])?)*)\s\}(\+)? }%
{\c{ebnf at repetition}[\5]{\1}} \ebnf_tmp \ebnf_curled}%
\ebnf_curled%
+ \cs_undefine:N\ebnf_brackets%
\cs_new:Npn\ebnf_brackets{%
\regex_replace_all:nnNT
{ \(\s(([^\s]*(\s[^\)\(]|\s(\)|\()[^\s])?)*)\s\) }%
{\c{ebnf at grouping}{\1}} \ebnf_tmp \ebnf_brackets}%
\ebnf_brackets%
+ \cs_undefine:N\ebnf_squares%
\cs_new:Npn\ebnf_squares{%
\regex_replace_all:nnNT
{ \[\s(([^\s]*(\s[^\]\[]|\s(\]|\[)[^\s])?)*)\s\] }%
Modified: trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.ins 2024-10-25 21:26:59 UTC (rev 72651)
+++ trunk/Master/texmf-dist/source/latex/naive-ebnf/naive-ebnf.ins 2024-10-25 21:27:09 UTC (rev 72652)
@@ -1,6 +1,6 @@
%% (The MIT License)
%%
-%% Copyright (c) 2023 Yegor Bugayenko
+%% Copyright (c) 2023-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -26,7 +26,7 @@
\preamble
(The MIT License)
-Copyright (c) 2023 Yegor Bugayenko
+Copyright (c) 2023-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/tex/latex/naive-ebnf/naive-ebnf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/naive-ebnf/naive-ebnf.sty 2024-10-25 21:26:59 UTC (rev 72651)
+++ trunk/Master/texmf-dist/tex/latex/naive-ebnf/naive-ebnf.sty 2024-10-25 21:27:09 UTC (rev 72652)
@@ -7,7 +7,7 @@
%% naive-ebnf.dtx (with options: `package')
%% (The MIT License)
%%
-%% Copyright (c) 2023 Yegor Bugayenko
+%% Copyright (c) 2023-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{naive-ebnf}
-[2024/09/06 0.0.16 EBNF in Plain Text]
+[2024/10/25 0.0.17 EBNF in Plain Text]
@@ -147,16 +147,19 @@
\regex_replace_all:nnN
{ /(.+?)/ }%
{\c{ebnf at regexp}{\1}} \ebnf_tmp%
+ \cs_undefine:N\ebnf_curled%
\cs_new:Npn\ebnf_curled{%
\regex_replace_all:nnNT
{ \{\s(([^\s]*(\s[^\}\{]|\s(\}|\{)[^\s])?)*)\s\}(\+)? }%
{\c{ebnf at repetition}[\5]{\1}} \ebnf_tmp \ebnf_curled}%
\ebnf_curled%
+ \cs_undefine:N\ebnf_brackets%
\cs_new:Npn\ebnf_brackets{%
\regex_replace_all:nnNT
{ \(\s(([^\s]*(\s[^\)\(]|\s(\)|\()[^\s])?)*)\s\) }%
{\c{ebnf at grouping}{\1}} \ebnf_tmp \ebnf_brackets}%
\ebnf_brackets%
+ \cs_undefine:N\ebnf_squares%
\cs_new:Npn\ebnf_squares{%
\regex_replace_all:nnNT
{ \[\s(([^\s]*(\s[^\]\[]|\s(\]|\[)[^\s])?)*)\s\] }%
More information about the tex-live-commits
mailing list.