yyp has quit [Quit: now it's safe to turn off your computer]
<leon-p>
am a bit miffed that `if (token == .String) |str| {}` does not work though...
<ifreund>
leon-p: gotta use a switch...
<novakane[m]>
is it good if I only render the background color and nothing else after? :P
<novakane[m]>
I made river a screen locker that you can't unlock :D
<leon-p>
and my parser works! It just segfaults when i try to deinit the arena
<novakane[m]>
segfault is not ideal though :p
<leon-p>
it's progress. It means that the rest more or less works. After a few frustrating rounds of playing "is my parsing code wrong or the input json?" a segfault is refreshing :)
<leon-p>
and it was just a double free because I copy-pasted without being careful
<novakane[m]>
yeah you were efficient
<leon-p>
and now comes the actually painful part: generating the completion scripts
<leon-p>
I wonder how well my abstraction maps to bash :D
<novakane[m]>
you'll probably have some nice surprise with bash :p
waleee-cl has joined #river
<leon-p>
writing code that writes code brings back not so fond memories of c macros…
<ifreund>
think of it this way: you're basically writing a comipler
<ifreund>
*compiler
<ifreund>
for a DSL you just invented :D
<leon-p>
that does sound better. Have you though about a job in marketing?
<leon-p>
it is somewhat horrifying, but it actually works D:
<leon-p>
options with modifiers (--option modifier) work, now only tools and conflict groups are missing
<ifreund>
nice :)
yyp has joined #river
josip has quit [Remote host closed the connection]
josip has joined #river
<leon-p>
I am beginning to think that using a parser was the wrong approach. It works, but making even minor changes is annoying.
<leon-p>
it's probably better to just have a struct and functions to add command options
<ifreund>
that would certainly be faster to iterate on
yyp has quit [Quit: now it's safe to turn off your computer]