Answer the question
In order to leave comments, you need to log in
How to write a parser algorithm?
Good afternoon, dear reader!
How to write a parser algorithm? Based on weather data, I want to make a notification based on the Telegram bot that, is it possible to look at the Moon through a telescope tonight?
In general, how are algorithms developed?
Thanks for answers!
Answer the question
In order to leave comments, you need to log in
The algorithm is developed very simply:
Dmitry Soshnikov gives an example of parsers in a course on functional programming (he claims that it is the functional approach that makes it easy to write parsers).
There are also two sections on parsers in the "Haskell, part 2" course on Stepika in the applicative functors section. But it is added there that it is desirable to do grammar and run a lexer before the parser (no examples), which parses the input stream into tags (and those are already parsed by the parser). So you can study what grammar, vocabulary, syntax, etc. are.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question