Re:Talking is throwing fictional worlds at one another
by foldr on Tuesday September 15, 2020 @11:10AM
(#24482049)
I see, fair enough. I think I may have misread your original comment.
Re:Talking is throwing fictional worlds at one another
by YeGoblynQueenne on Tuesday September 15, 2020 @11:15AM
(#24482108)
No, I misread yours :)
What I meant by "the result will still have to be a context free grammar" was a context-free grammar that incorporates a counting mechanism, as part of its definition. Something like this, perhaps (in Definite Clause Grammars notation so you can actually run it as a Prolog program):
Though that one is recursive (or at least the counting mechanism is) and I'm not sure how you'd do the same thing without recursion to be honest (or without going up a couple of levels to Turing-completeness so you can call arbitrary functions). So, never mind- I just misunderstood what you meant.