Re:Dumbdown – A Tree Language that compiles to HTML
by breck on Monday September 02, 2019 @01:29AM
(#20856958)
You could make - a top level node type. You could also use pattern matching, instead of prefix notation. Tree Languages can use prefix notation, infix, postfix, pattern matching, omnifix, etc. prefix notation seems to work well for this case.
[ Parent
| on HN ]
Re:Dumbdown – A Tree Language that compiles to HTML
by hyperpallium on Monday September 02, 2019 @02:58AM
(#20857250)
RE the thread at https://lobste.rs/s/solbtw/this_is_dumbdown_alternative_mark... could you just write a parser (in Tree Notation) that that converts a language in Tree Notation into BNF?
e.g. to produce BNF of dumbdown
Also, to parse BNF and produce a (bare bones) version in Tree Notation.
This would make it more accessible while also demostrating its power.
Re:Dumbdown – A Tree Language that compiles to HTML
by breck on Monday September 02, 2019 @11:09AM
(#20859523)
That's a really good idea!
If you give it a shot, I'd be happy to add any features or fix any bugs that you come across in the Grammar language. I'd also be happy to do a screenshare to explain any questions you might have about Grammar before you get started (since the UX is still pretty bad--I apologize. Slowly getting there!).
Re:Dumbdown – A Tree Language that compiles to HTML
by hyperpallium on Tuesday September 03, 2019 @11:04AM
(#20867159)
It was a challenge to you. Though thinking it over, it's grammar transformation, not the parsing that Tree Notation is for.