Skip to main content

Keywords Reference

Keywords are words reserved by the TinyPanda language. Because they carry built-in operational meaning, you cannot use them as identifiers (variable names, function names, etc.).

TinyPanda Keywords

KeywordPurposeExample
bambooDeclares a mutable variable.bamboo color = "green";
iffInitiates a conditional execution expression branch.iff (isHungry) { ... }
otherwiseFinal alternative branch fallback for an iff block.otherwise { ... }
fnDefines an anonymous or named first-class function value.bamboo add = fn(x, y) { return x + y; };
returnHalts function execution and bubbles a specific value back out.return "done";
trueBoolean literal value for absolute logical truth.bamboo logic = true;
falseBoolean literal value representing logical falsehood (and the language's only falsy state).bamboo logic = false;

When writing tinypanda program, keep these two strict rules in mind:

  • Everything must be lowercase: TinyPanda keywords only work in lowercase. Writing BAMBOO or Iff will break your code and cause an error.
  • Keywords are reserved: You cannot name your variables after keywords. For example, you cannot do bamboo iff = 10;.