News for hackers. Stuff that matters.
Re:Just Write the Parser by tofflos on Wednesday October 21, 2020 @04:53PM (#24852059)
> Enter an expression on the left and see the parse tree change!

I don't get it. The left input field is uneditable in Firefox, Edge and Chrome. Navigation is broken across the board. Even copying and pasting the quote above somehow included most of the page even though I only selected that one sentence.

This looks very cool and I would love to try it out! :(

Re:Just Write the Parser by blcArmadillo on Wednesday October 21, 2020 @05:10PM (#24852221)
Yeah I think something is broken because at least in chrome when you try to type in the left box the following exception keeps being thrown in the console

  VM463:82 Uncaught TypeError: Cannot read property 'startContainer' of undefined
      at HTMLPreElement.eval (eval at run (eval at runScriptElement (octopus-2.js:525)), <anonymous>:82:40)
Re:Just Write the Parser by tiarkrompf on Wednesday October 21, 2020 @05:34PM (#24852461)
I just pushed a fix for Chrome (apparently it doesn't report affected selection ranges for input events). Hope it works now!
Re:Just Write the Parser by makeworld on Wednesday October 21, 2020 @08:03PM (#24853652)
I can't type on the left in Firefox still. Using 81.0.2.
Re:Just Write the Parser by tofflos on Wednesday October 21, 2020 @06:35PM (#24852992)
Thanks! It works for me now in Edge (Chromium).
Re:Just Write the Parser by LeonB on Wednesday October 21, 2020 @06:19PM (#24852862)
it works for me now on Chrome.