texlive[72453] Master/texmf-dist: jsonparse (3oct24)

commits+karl at tug.org commits+karl at tug.org
Thu Oct 3 22:33:58 CEST 2024


Revision: 72453
          https://tug.org/svn/texlive?view=revision&revision=72453
Author:   karl
Date:     2024-10-03 22:33:58 +0200 (Thu, 03 Oct 2024)
Log Message:
-----------
jsonparse (3oct24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/jsonparse/README.md
    trunk/Master/texmf-dist/doc/latex/jsonparse/jsonparse-doc.pdf
    trunk/Master/texmf-dist/doc/latex/jsonparse/jsonparse-doc.tex
    trunk/Master/texmf-dist/tex/latex/jsonparse/jsonparse.sty

Modified: trunk/Master/texmf-dist/doc/latex/jsonparse/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/jsonparse/README.md	2024-10-03 20:33:48 UTC (rev 72452)
+++ trunk/Master/texmf-dist/doc/latex/jsonparse/README.md	2024-10-03 20:33:58 UTC (rev 72453)
@@ -1,4 +1,4 @@
-![Version 0.9.1](https://img.shields.io/badge/version-0.9.1-blue)
+![Version 0.9.2](https://img.shields.io/badge/version-0.9.2-blue)
 
 ![Jason, the JSON parsing horse](https://github.com/jasperhabicht/jsonparse/assets/6378801/ddfddc70-bf5f-4121-ba45-4b9128875d85)
 

Modified: trunk/Master/texmf-dist/doc/latex/jsonparse/jsonparse-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/jsonparse/jsonparse-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/jsonparse/jsonparse-doc.tex	2024-10-03 20:33:48 UTC (rev 72452)
+++ trunk/Master/texmf-dist/doc/latex/jsonparse/jsonparse-doc.tex	2024-10-03 20:33:58 UTC (rev 72453)
@@ -11,8 +11,8 @@
 % This work has the LPPL maintenance status `maintained'.
 % 
 \documentclass[a4paper]{article}
-\def\jsonparsefileversion{0.9.1}
-\def\jsonparsefiledate{21 September 2024}
+\def\jsonparsefileversion{0.9.2}
+\def\jsonparsefiledate{2 October 2024}
 
 \usepackage[T1]{fontenc}
 \usepackage{Alegreya}

Modified: trunk/Master/texmf-dist/tex/latex/jsonparse/jsonparse.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/jsonparse/jsonparse.sty	2024-10-03 20:33:48 UTC (rev 72452)
+++ trunk/Master/texmf-dist/tex/latex/jsonparse/jsonparse.sty	2024-10-03 20:33:58 UTC (rev 72453)
@@ -10,7 +10,7 @@
 % 
 % This work has the LPPL maintenance status `maintained'.
 % 
-\ProvidesExplPackage {jsonparse} {2024-09-21} {0.9.1} 
+\ProvidesExplPackage {jsonparse} {2024-10-02} {0.9.2} 
   {JSON Parse}
 
 \bool_new:N \l__jsonparse_debug_mode_bool
@@ -303,17 +303,8 @@
 \bool_new:N \l__jsonparse_num_plus_minus_seen_bool 
 \bool_new:N \l__jsonparse_num_fraction_seen_bool 
 \bool_new:N \l__jsonparse_num_exponent_seen_bool
-\tl_new:N \l__jsonparse_num_input_tl
-\tl_new:N \l__jsonparse_num_remainder_tl
-\tl_new:N \l__jsonparse_num_input_last_tl
-\bool_new:N \l__jsonparse_num_bool 
-\bool_new:N \l__jsonparse_num_zero_seen_bool 
-\bool_new:N \l__jsonparse_num_plus_minus_seen_bool 
-\bool_new:N \l__jsonparse_num_fraction_seen_bool 
-\bool_new:N \l__jsonparse_num_exponent_seen_bool
 
 \clist_const:Nn \c__jsonparse_num_digits_clist {
-\clist_const:Nn \c__jsonparse_num_digits_clist {
     0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 
 }
 
@@ -326,18 +317,8 @@
     \tl_set:Nn \l__jsonparse_num_remainder_tl { #1 }
     \tl_if_empty:NTF \l__jsonparse_num_remainder_tl {
         \bool_set_false:N \l__jsonparse_num_bool  
-\prg_new_conditional:Npnn \jsonparse_if_num:n #1 { p , T , F , TF } {
-    \bool_set_true:N \l__jsonparse_num_bool    
-    \bool_set_false:N \l__jsonparse_num_zero_seen_bool
-    \bool_set_false:N \l__jsonparse_num_plus_minus_seen_bool
-    \bool_set_false:N \l__jsonparse_num_fraction_seen_bool
-    \bool_set_false:N \l__jsonparse_num_exponent_seen_bool
-    \tl_set:Nn \l__jsonparse_num_remainder_tl { #1 }
-    \tl_if_empty:NTF \l__jsonparse_num_remainder_tl {
-        \bool_set_false:N \l__jsonparse_num_bool  
     } {
         \__jsonparse_parse_num:n {#1}
-        \__jsonparse_parse_num:n {#1}
     }
     \bool_lazy_any:nT {
         { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { + } }
@@ -345,17 +326,10 @@
         { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
         { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
         { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
-        { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { + } }
-        { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { - } }
-        { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
-        { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
-        { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
     } {
         \bool_set_false:N \l__jsonparse_num_bool 
-        \bool_set_false:N \l__jsonparse_num_bool 
     }
     \bool_if:NTF \l__jsonparse_num_bool {
-    \bool_if:NTF \l__jsonparse_num_bool {
         \prg_return_true:
     } {
         \prg_return_false:
@@ -367,61 +341,42 @@
     \tl_if_empty:NF \l__jsonparse_num_input_tl {
         \cs_if_exist_use:cTF { __jsonparse_parse_num_ \str_head_ignore_spaces:o { \l__jsonparse_num_input_tl } :w } { 
             \l__jsonparse_num_input_tl \q_stop
-\cs_new:Npn \__jsonparse_parse_num:n #1 {
-    \tl_set:Ne \l__jsonparse_num_input_tl { \tl_trim_spaces:e {#1} }
-    \tl_if_empty:NF \l__jsonparse_num_input_tl {
-        \cs_if_exist_use:cTF { __jsonparse_parse_num_ \str_head_ignore_spaces:o { \l__jsonparse_num_input_tl } :w } { 
-            \l__jsonparse_num_input_tl \q_stop
         } {
             \exp_last_unbraced:No 
             \__jsonparse_parse_num_other:w \l__jsonparse_num_input_tl \q_stop 
-            \__jsonparse_parse_num_other:w \l__jsonparse_num_input_tl \q_stop 
         }
     }
 }
 
 \cs_new:cpn { __jsonparse_parse_num_ + :w } #1 \q_stop {
-\cs_new:cpn { __jsonparse_parse_num_ + :w } #1 \q_stop {
   \exp_last_unbraced:No 
     \__jsonparse_parse_num_plus_minus:w #1 \q_stop
-    \__jsonparse_parse_num_plus_minus:w #1 \q_stop
 }
 
 \cs_new:cpn { __jsonparse_parse_num_ - :w } #1 \q_stop {
-\cs_new:cpn { __jsonparse_parse_num_ - :w } #1 \q_stop {
   \exp_last_unbraced:No 
     \__jsonparse_parse_num_plus_minus:w #1 \q_stop
-    \__jsonparse_parse_num_plus_minus:w #1 \q_stop
 }
 
 \cs_new:cpn { __jsonparse_parse_num_ . :w } #1 \q_stop {
-\cs_new:cpn { __jsonparse_parse_num_ . :w } #1 \q_stop {
   \exp_last_unbraced:No 
     \__jsonparse_parse_num_fraction:w #1 \q_stop
-    \__jsonparse_parse_num_fraction:w #1 \q_stop
 }
 
 \cs_new:cpn { __jsonparse_parse_num_ e :w } #1 \q_stop {
-\cs_new:cpn { __jsonparse_parse_num_ e :w } #1 \q_stop {
   \exp_last_unbraced:No 
     \__jsonparse_parse_num_exponent:w #1 \q_stop
-    \__jsonparse_parse_num_exponent:w #1 \q_stop
 }
 
 \cs_new:cpn { __jsonparse_parse_num_ E :w } #1 \q_stop {
-\cs_new:cpn { __jsonparse_parse_num_ E :w } #1 \q_stop {
   \exp_last_unbraced:No 
     \__jsonparse_parse_num_exponent:w #1 \q_stop
-    \__jsonparse_parse_num_exponent:w #1 \q_stop
 }
 
 \clist_map_inline:Nn \c__jsonparse_num_digits_clist {
     \cs_new:cpn { __jsonparse_parse_num_ #1 :w } ##1 \q_stop {
-\clist_map_inline:Nn \c__jsonparse_num_digits_clist {
-    \cs_new:cpn { __jsonparse_parse_num_ #1 :w } ##1 \q_stop {
       \exp_last_unbraced:No 
         \__jsonparse_parse_num_digit:w ##1 \q_stop
-        \__jsonparse_parse_num_digit:w ##1 \q_stop
     }
 }
 
@@ -429,18 +384,11 @@
     \bool_if:NTF \l__jsonparse_num_plus_minus_seen_bool {
         \tl_set:Nn \l__jsonparse_num_remainder_tl { }
         \bool_set_false:N \l__jsonparse_num_bool
-\cs_new:Npn \__jsonparse_parse_num_plus_minus:w #1 \q_stop {
-    \bool_if:NTF \l__jsonparse_num_plus_minus_seen_bool {
-        \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-        \bool_set_false:N \l__jsonparse_num_bool
     } {
         \tl_if_empty:NTF \l__jsonparse_num_input_last_tl {
-        \tl_if_empty:NTF \l__jsonparse_num_input_last_tl {
             \str_if_eq:enT { \tl_head:n {#1} } { + } {
                 \tl_set:Nn \l__jsonparse_num_remainder_tl { }
                 \bool_set_false:N \l__jsonparse_num_bool
-                \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-                \bool_set_false:N \l__jsonparse_num_bool
             }
         } {
             \bool_lazy_any:nT {
@@ -449,16 +397,9 @@
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { + } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { - } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
             } {
                 \tl_set:Nn \l__jsonparse_num_remainder_tl { }
                 \bool_set_false:N \l__jsonparse_num_bool 
-                \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-                \bool_set_false:N \l__jsonparse_num_bool 
             }
         }
     }
@@ -466,10 +407,6 @@
     \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
     \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
     \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
-    \bool_set_true:N \l__jsonparse_num_plus_minus_seen_bool
-    \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
-    \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
-    \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
 }
 
 \cs_new:Npn \__jsonparse_parse_num_fraction:w #1 \q_stop {
@@ -476,17 +413,10 @@
     \bool_if:NTF \l__jsonparse_num_fraction_seen_bool {
         \tl_set:Nn \l__jsonparse_num_remainder_tl { }
         \bool_set_false:N \l__jsonparse_num_bool
-\cs_new:Npn \__jsonparse_parse_num_fraction:w #1 \q_stop {
-    \bool_if:NTF \l__jsonparse_num_fraction_seen_bool {
-        \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-        \bool_set_false:N \l__jsonparse_num_bool
     } {
         \tl_if_empty:NTF \l__jsonparse_num_input_last_tl {
             \tl_set:Nn \l__jsonparse_num_remainder_tl { }
             \bool_set_false:N \l__jsonparse_num_bool
-        \tl_if_empty:NTF \l__jsonparse_num_input_last_tl {
-            \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-            \bool_set_false:N \l__jsonparse_num_bool
         } {
             \bool_lazy_any:nT {
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { + } }
@@ -494,16 +424,9 @@
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { + } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { - } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
             } {
                 \tl_set:Nn \l__jsonparse_num_remainder_tl { }
                 \bool_set_false:N \l__jsonparse_num_bool 
-                \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-                \bool_set_false:N \l__jsonparse_num_bool 
             }
         }
     }
@@ -513,12 +436,6 @@
     \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
     \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
     \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
-    \bool_set_false:N \l__jsonparse_num_zero_seen_bool
-    \bool_set_true:N \l__jsonparse_num_plus_minus_seen_bool
-    \bool_set_true:N \l__jsonparse_num_fraction_seen_bool
-    \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
-    \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
-    \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
 }
 
 \cs_new:Npn \__jsonparse_parse_num_exponent:w #1 \q_stop {
@@ -525,17 +442,10 @@
     \bool_if:NTF \l__jsonparse_num_exponent_seen_bool {
         \tl_set:Nn \l__jsonparse_num_remainder_tl { }
         \bool_set_false:N \l__jsonparse_num_bool
-\cs_new:Npn \__jsonparse_parse_num_exponent:w #1 \q_stop {
-    \bool_if:NTF \l__jsonparse_num_exponent_seen_bool {
-        \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-        \bool_set_false:N \l__jsonparse_num_bool
     } {
         \tl_if_empty:NTF \l__jsonparse_num_input_last_tl {
             \tl_set:Nn \l__jsonparse_num_remainder_tl { }
             \bool_set_false:N \l__jsonparse_num_bool
-        \tl_if_empty:NTF \l__jsonparse_num_input_last_tl {
-            \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-            \bool_set_false:N \l__jsonparse_num_bool
         } {
             \bool_lazy_any:nT {
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { + } }
@@ -543,16 +453,9 @@
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
                 { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { + } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { - } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { . } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { e } }
-                { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { E } }
             } {
                 \tl_set:Nn \l__jsonparse_num_remainder_tl { }
                 \bool_set_false:N \l__jsonparse_num_bool 
-                \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-                \bool_set_false:N \l__jsonparse_num_bool 
             }
         }
     }
@@ -563,54 +466,33 @@
     \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
     \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
     \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
-    \bool_set_false:N \l__jsonparse_num_zero_seen_bool
-    \bool_set_false:N \l__jsonparse_num_plus_minus_seen_bool
-    \bool_set_true:N \l__jsonparse_num_fraction_seen_bool
-    \bool_set_true:N \l__jsonparse_num_exponent_seen_bool
-    \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
-    \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
-    \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
 }
 
 \cs_new:Npn \__jsonparse_parse_num_digit:w #1 \q_stop {
-\cs_new:Npn \__jsonparse_parse_num_digit:w #1 \q_stop {
     \bool_lazy_any:nTF {
         { \tl_if_empty_p:N \l__jsonparse_num_input_last_tl }
-        { \tl_if_empty_p:N \l__jsonparse_num_input_last_tl }
         { \bool_lazy_and_p:nn 
             { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { - } }
             { \bool_not_p:n { \l__jsonparse_num_exponent_seen_bool } }
-            { \str_if_eq_p:Vn \l__jsonparse_num_input_last_tl { - } }
-            { \bool_not_p:n { \l__jsonparse_num_exponent_seen_bool } }
         }
     } {
         \str_if_eq:enT { \tl_head:n {#1} } { 0 } {
             \bool_set_true:N \l__jsonparse_num_zero_seen_bool
-            \bool_set_true:N \l__jsonparse_num_zero_seen_bool
         } 
     } {
         \bool_if:NT \l__jsonparse_num_zero_seen_bool {
             \tl_set:Nn \l__jsonparse_num_remainder_tl { }
             \bool_set_false:N \l__jsonparse_num_bool
-        \bool_if:NT \l__jsonparse_num_zero_seen_bool {
-            \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-            \bool_set_false:N \l__jsonparse_num_bool
         }
     }
     \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
     \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
     \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
-    \tl_set:Ne \l__jsonparse_num_input_last_tl { \tl_head:n {#1} }
-    \tl_set:Ne \l__jsonparse_num_remainder_tl { \tl_tail:n {#1} }
-    \__jsonparse_parse_num:n { \l__jsonparse_num_remainder_tl }
 }
 
 \cs_new:Npn \__jsonparse_parse_num_other:w #1 \q_stop {
     \tl_set:Nn \l__jsonparse_num_remainder_tl { }
     \bool_set_false:N \l__jsonparse_num_bool 
-\cs_new:Npn \__jsonparse_parse_num_other:w #1 \q_stop {
-    \tl_set:Nn \l__jsonparse_num_remainder_tl { }
-    \bool_set_false:N \l__jsonparse_num_bool 
 }
 
 % ===



More information about the tex-live-commits mailing list.