[HN Gopher] Show HN: Online Interactive Parser
___________________________________________________________________
Show HN: Online Interactive Parser
Author : fjfaase
Score : 18 points
Date : 2021-03-16 12:01 UTC (2 days ago)
(HTM) web link (fransfaase.github.io)
(TXT) w3m dump (fransfaase.github.io)
| hardmath123 wrote:
| You might also like the nearley playground, which lets you write
| a grammar in BNF and see all possible parsings of an input. You
| can even press a button and generate a random string that matches
| your grammar! https://omrelli.ug/nearley-playground/
| avmich wrote:
| Interesting.
|
| How to specify in a grammar that a double quote, " , should
| appear somewhere in the input?
| fjfaase wrote:
| Author here: That is indeed not possible. One would expect that
| using "\"" would define a literal for a double quote, but the
| parser does not interpret the back-slash and instead expect \"
| in the input. Please note that this online interactive parser
| is not intended to support all kind of lexical elements that
| occur in various programming languages. Please follow the
| pointers to IParse and RawParser for solutions that offer more
| possibilities.
___________________________________________________________________
(page generated 2021-03-18 23:01 UTC)