datalust / superpower

A C# parser construction toolkit with high-quality error reporting
Apache License 2.0
1.05k stars 98 forks source link

More documentation and possible english tutorial videos? #110

Closed Shadowblitz16 closed 4 years ago

Shadowblitz16 commented 4 years ago

Can we get more documentation and possibly a english tutorial series? I would love to learn how to possibly make a lua like language and maybe add some features to it.

nblumhardt commented 4 years ago

Thanks for the suggestion! Documentation work is ongoing :-)

It's not possible for us to write more tutorials right now - but the concepts should be similar to those in resources like https://interpreterbook.com/ - starting there would be great (although you need to mentally translate to C# :-)).

Shadowblitz16 commented 4 years ago

thats too bad

EuroEager2008 commented 3 years ago

Any progress?

nblumhardt commented 3 years ago

@EuroEager2008 Hi! Have you watched https://www.youtube.com/watch?v=t4dYy6P3JuA ?

EuroEager2008 commented 3 years ago

Thanks a lot

I watched it today and it helps, but I am (still) too new for this (I mean parsing, never really tried before, actually tried, but always failed :)). I asked a more specific question here: https://stackoverflow.com/questions/64268942/using-superpower-to-parse-simple-block-oriented-data-structures If you care, please just guide me a bit in how to structure tokenizer(s) and parsers for this simple case. Should I define a tokenizer (and token enum) for each "block type" or just one for the whole span (textfile), several parsers etc.? As you can see, this text is not about any programming language, it is more like a markup language describing datastructures or something like that.

nblumhardt commented 3 years ago

Thanks for your reply, @EuroEager2008 👍 - I'd love to help (super interesting subject area!) but I can't squeeze the time right now to dig in deeper; there should be a lot of relevant material out there discussing tokenization, parser combinators, and the like, though it takes some time to work through. Good luck with it!