tokipona.parser icon indicating copy to clipboard operation
tokipona.parser copied to clipboard

Implement back tracking (Recursion)

Open matthewdeanmartin opened this issue 10 years ago • 0 comments

When a sub part has realized that we have misread a sentence, it should modify it, and kick it back to the very top, i.e. call SentenceFactory()

Would need to track

  • Original input
  • Determine which part of input needs to be changed (i.e. this is not a number)
  • Track # of back tracks and prevent infinite back tracking.

May want to implement memoizing at the same time. (BUT ONLY IF IT IS REALLY EASY)

matthewdeanmartin avatar Dec 10 '14 23:12 matthewdeanmartin