Skip to content

Support tail recursion #49

Description

@tangentstorm

Tail recursion can be detected when

  • an explicit definition is running
  • the result of the current sentence is guaranteed to be the result of the verb
  • the sentence issues a recursion to the same explicit definition
  • all tokens have been moved from the queue to the stack in the parser
  • no names are on the stack in the parser

-- @HenryHRich 13:15, 12 June 2017 (UTC)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions