Skip to content

Commands

Nova edited this page Oct 27, 2020 · 3 revisions

Commands

This is a list of the possible commands that can be used in PogCode, along with their usage and formatting.

Basics

PogCode is a no-indent language. At the moment, there is not a need to indent code to begin with, but indents are not supported in PogCode, and using them will cause unintended side effects. PogCode is also case-sensitive. Commands and variables must be properly capitalized in order to properly function.

Variables can be used in a PogChamp or Pog command by surrounding the name of the variable in {}s.

Main Commands

PogChamp

Writes a blank line to the console.

PogChamp <Output>

Writes the output to the console in a new line, compatible with variables.

Pog <Output>

Writes the output to the console without creating a new line, compatible with variables.

PogChap

Waits for the user to press Enter before continuing to the rest of the code.

PauseChamp <Milliseconds>

Sleeps for the specified amount of time, compatible with variables.

PogU <Name> <string, int, float>

Declares a variable of the specified type with the specified name.

PogU <Name> <string, int, float> <Value>

Declares a variable of the specified type with the specified name with the specified value.

WeirdChamp <Name> <string, int, float>

Declares a variable of the specified type with the specified name with the value provided from the user's input.

BrainChamp <Math expression>

Parses and outputs a math expression, compatible with variables.

Miscellaneous Commands

Kappa

Precedes a comment, ignored by PogCode.

PogO

Acts as a breakpoint for debugging purposes, usable by running the code through a copy of the source code of the PogCode Interpreter running in an IDE.