4 ms·
> I imagine this could be understood as making use of a monad. Right? Can you clarify what do you mean? Do expect the concept of "monad" to help explaining Ra
by antononcube 2y ago
> I imagine this could be understood as making use of a monad. Right?
Can you clarify what do you mean?
Do expect the concept of "monad" to help explaining Raku grammars?
- ogogmad 2y agoYes. Compare it to the List monad or Parsec.
- antononcube 2y ago- There is a natural from-to conversion of Functional Parsers (FP) monad (as in Parsec) to Extended Backus-Naur Form (EBNF). - Similarly, EBNF can be applied to Raku grammars. - Hence, the representation of Raku grammars into FP monad is doable, at least for certain large enough set of Raku grammars. - See the package "FunctionalParsers".