Let ReadP carry a failure message

Dannyu NDos ndospark320 at gmail.com
Fri Nov 20 03:25:32 UTC 2020


Well, I once tried implementing a parser that evaluates integer
addition, multiplication, exponential, tetration, pentation, and so on
infinitely. The operators were + with precedence 6, * with precedence
7, ^ with precedence 8, ^^ with precedence 9 (for tetration), ^^^ with
precedence 10 (for pentation), ^^^^ with precedence 11 (for hexation),
and so on infinitely. I've not succeeded implementing it using
ordinary ReadP.


More information about the Libraries mailing list