News for hackers. Stuff that matters.
Re:Racket: Parsing propositional logic in 33 lines by moonchild on Friday October 16, 2020 @04:40AM (#24798868)
(On the other hand, the raku version also implements operator precedence properly, with infix operators having lower precedence than logical negation.)
Re:Racket: Parsing propositional logic in 33 lines by hydroxideOH- on Friday October 16, 2020 @02:25PM (#24803562)
Hi, author here. I'm new to Racket and obviously no expert. I realized this problem, but I wasn't sure about the best way to go about fixing it, do you have any suggestions?
Re:Racket: Parsing propositional logic in 33 lines by moonchild on Friday October 16, 2020 @04:13PM (#24804598)
I would do something similar to the raku version and have an extra bit in the grammar. Don't know racket or brag, but maybe something like http://ix.io/2AXE