<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">I had one more brainstorm I needed to
share</div>
<div class="moz-cite-prefix"><br>
</div>
<blockquote>
<div class="moz-cite-prefix"><font face="monospace">package
CodeGen::Cpppp;<br>
use strict;<br>
use warnings;<br>
use Carp;<br>
<br>
# VERSION<br>
# ABSTRACT: The C Perl-Powered Pre-Processor<br>
<br>
=head1 SYNOPSIS<br>
<br>
<i>Well, it's one layer of abstraction higher, isn't
it? It's not C<cpp>. You see, most<br>
blokes, you know, they will be templating with C<m4> or
C<cpp>... Where can you go from there?<br>
Where?</i><br>
<br>
<i>This one goes to C<perl>.</i><br>
<br>
<br>
 #! /usr/bin/env cpppp<br>
 ## for (my $bits= 8; $bits <= 32; $bits <<= 1) {<br>
 struct tree_node_$bits {<br>
   uint${bits}_t left: ${{$bits-1}},<br>
                 color: 1,<br>
                 right: ${{$bits-1}};<br>
 }<br>
 ## }<br>
<br>
Output:<br>
<br>
 struct tree_node_8 {<br>
   uint8_t left: 7,<br>
           right: 7,<br>
           color: 1;<br>
 }<br>
 struct tree_node_16 {<br>
   uint16_t left: 15,<br>
            right: 15,<br>
            color: 1;<br>
 }<br>
 struct tree_node_32 {<br>
   uint32_t left: 31,<br>
            right: 31,<br>
            color: 1;<br>
 }<br>
</font><br>
</div>
</blockquote>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 9/13/23 15:06, Michael Conrad wrote:<br>
</div>
<blockquote type="cite"
cite="mid:eaf46321-ff62-e9a9-5414-d327f02b8855@nrdvana.net">And I
have cool stuff to show everyone!
<br>
<br>
On 9/13/23 10:17, Jon Gentle wrote:
<br>
<blockquote type="cite">Good morning,
<br>
<br>
Quick reminder about September's cinci.pm tonight. I hope to see
you then.
<br>
<br>
On Fri, Sep 8, 2023 at 10:47 PM Jon Gentle
<a class="moz-txt-link-rfc2396E" href="mailto:atrodo@atrodo.org"><atrodo@atrodo.org></a> wrote:
<br>
<blockquote type="cite">Good Evening,
<br>
<br>
Next Wednesday, September 13th, we will be gathering again for
<br>
cinci.pm. This month, Mike has an idea about perl fields
concept he's
<br>
working on that we're going to talk about. Should be
interesting to
<br>
see from what I've seen, so I hope to see you then.
<br>
<br>
Details:
<br>
* What: perl fields
<br>
* When: Wednesday, September 13th @ 7:00pm
<br>
* Where: <a class="moz-txt-link-freetext" href="https://meet.google.com/rmj-qwkb-kez">https://meet.google.com/rmj-qwkb-kez</a>
<br>
</blockquote>
_______________________________________________
<br>
Cincinnati-pm mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Cincinnati-pm@pm.org">Cincinnati-pm@pm.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://mail.pm.org/mailman/listinfo/cincinnati-pm">https://mail.pm.org/mailman/listinfo/cincinnati-pm</a>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
Cincinnati-pm mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Cincinnati-pm@pm.org">Cincinnati-pm@pm.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://mail.pm.org/mailman/listinfo/cincinnati-pm">https://mail.pm.org/mailman/listinfo/cincinnati-pm</a>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>