notf

From Esolang
Jump to navigation Jump to search

notf is a esolang based on not created by User:Yayimhere

memory

memory is now stored in three stacks(!). the first one can only recognize symbols not how many instances there are, so its incapable of recognizing a string, such as anbncn (that is, a number of a's, followed by the same number of b's followed by the same number of c's.). the second one can recognize the number, n, but not the symbols themselves. and the third can process both. so it's capable of recognizing any string, such as anbncn (that is, a number of a's, followed by the same number of b's followed by the same number of c's.) and anbkcu (that is, n number of a's, followed by k number of b's followed u number of c's.)

commands

there are some changes:

  • now + will now just push the length of the string to the second stack and keep the single symbols on the first stack
  • {x push single symbol x onto the first stack
  • |x push the code that would push the code that would push x onto the third stack
  • ! + but it will push to the third stack
  • ^ skip the following command if the top of the third stack has the length of the top of the second stack
  • ?n pop the top of the n'th stack
  • en push the empty string to the n'th stack
  • >>x jump to line x if the n'th stack is not empty
  • :n:reverse the n'th stack
  • \n empty the n'th stack
  • $ push user input to third stack
  • each command that uses the stack will just have a number following it such that it chooses which stack

so the original looping counter becomes:

1#11[1!=#3N#1]

and this is a Cat:

$#3

see also