[HN Gopher] Metaprogramming in Zig and parsing CSS
       ___________________________________________________________________
        
       Metaprogramming in Zig and parsing CSS
        
       Author : hundredwatt
       Score  : 66 points
       Date   : 2023-06-19 19:09 UTC (3 hours ago)
        
 (HTM) web link (notes.eatonphil.com)
 (TXT) w3m dump (notes.eatonphil.com)
        
       | bsaul wrote:
       | from all the zig features i've seen, comptime seems like the most
       | likely to have the most impact on future PL design. I don't know
       | how powerful it is in practice, but the idea looks so elegant and
       | simple and they seem to have managed to make it work.
        
       | WalterBright wrote:
       | Here's a parser generator that uses metaprogramming in D to run
       | it at compile time:
       | 
       | https://github.com/PhilippeSigaud/Pegged
        
         | generichuman wrote:
         | Is there one that doesn't depend on libc & the GC?
        
           | WalterBright wrote:
           | I don't know but here's a selection of them:
           | 
           | https://wiki.dlang.org/Lexers_Parsers
        
       | lionkor wrote:
       | The only thing stopping me from using Zig is the lack of docs
        
       ___________________________________________________________________
       (page generated 2023-06-19 23:01 UTC)