Pep and Nom

home | documentation | examples | translators | download | blog | all blog posts

the ℕ𝕠𝕞 decrement accumulator or "a-" command

Decrement the pep counter register by one.

The ℙ𝕖𝕡 virtual machine has a very simple integer counter or accumulator register which can either count up, count down, be set to zero or be appended to the workspace buffer with the count command.

This command takes no arguments.

see if equal number of { and } braces


   read; "{" { a+; } "}" { a-; }
   clear;
   (eof) { 
     count; !"0" { add " un-"; }
     add "equal '{' and '}'\n"; print; quit;
   }
  

notes

The (eof) checks to see if the peep buffer contains the end of input stream marker.