4 ms·
Antlr the last I looked and tried to use it was a pain. Version mismatches and incompatible changes... Plain old bison/yacc/lex or some of the newer Rust parsin
by elcritch 8y ago
Antlr the last I looked and tried to use it was a pain. Version mismatches and incompatible changes... Plain old bison/yacc/lex or some of the newer Rust parsing libraries would probably be simpler and easier to maintain.
- elcritch 8y agoLalrpop looks useful! https://news.ycombinator.com/item?id=10296149 https://news.ycombinator.com/item?id=10296149
- kasbah 8y agoYeah dvc94ch who wrote most of what's been done for v2 so far was suggesting Rust and then web-assembly. Kind of warming to it after using Antlr for a while. We both really need JS versions though so I am still not sold. Compiling with Emscripten might be an option but it could be a lot of pain as well.
- elcritch 8y agoI’ve just tinkered with wasm and rust, but it was surprisingly pretty straightforward. It seems there a huge amount of effort being placed in the ecosystem. Great project so far! I’ll have to check out the bom tools.
- kasbah 8y agoBut if I'd like to support older browsers I am out of luck, no?
- striking 8y agoEmscripten compiles to asm.js, which is just a subset of JS. CanIUse will tell you some browsers don't support it, but it really means they don't support accelerating it. Your code very well may still run in those browsers (but I'm not sure about the determinant of those cases).
- thosakwe 8y agoBison simpler than Antlr? What? I very strongly disagree.