I might have cause to be grateful for javascript for once
-
I typically do not like javascript. It's not personal, it's just the language's typing system I've always found difficult to use, and overall i find the language hard to debug. But I've been wanting to find information on LL(k) parse table generation that I could digest for years, and some good folx produced an implementation in javascript which doesn't seem to use anything too weird or JS specific so I'm porting it to C#. Sure I have to debug it in chrome to fill in some of the details but they made it easy to port, and I imagine they planned it that way. What's fascinating to me about it too, is they're using a parser and lexer to parse the input grammar that looks like it was generated using a port of some common C based tools to javascript. what a weird and cool little program. LL(k) Parsing Table Generator[^]
Real programmers use butterflies
-
I typically do not like javascript. It's not personal, it's just the language's typing system I've always found difficult to use, and overall i find the language hard to debug. But I've been wanting to find information on LL(k) parse table generation that I could digest for years, and some good folx produced an implementation in javascript which doesn't seem to use anything too weird or JS specific so I'm porting it to C#. Sure I have to debug it in chrome to fill in some of the details but they made it easy to port, and I imagine they planned it that way. What's fascinating to me about it too, is they're using a parser and lexer to parse the input grammar that looks like it was generated using a port of some common C based tools to javascript. what a weird and cool little program. LL(k) Parsing Table Generator[^]
Real programmers use butterflies
It's not too difficult the other way round too - I just converted a steganography application from C# to Javascript. I tend to use React and Typescript because with Typescript you can avoid a lot of the problems vanilla Javascript can lead you into.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
-
It's not too difficult the other way round too - I just converted a steganography application from C# to Javascript. I tend to use React and Typescript because with Typescript you can avoid a lot of the problems vanilla Javascript can lead you into.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
Yeah I converted a splay tree from typescript to C# once to learn how it was done, and it was a joy. I didn't end up using the implementation, because it was recursive, but it taught me the concepts.
Real programmers use butterflies