Skip to content

Syntax Reference

Rajesh Gautam edited this page Jun 12, 2026 · 1 revision

Syntax Reference

Rules

  • Every statement ends with \
  • Blocks open with - at the end of the line
  • Blocks close with --\
  • Strings use double quotes "like this"
  • Variable names need no quotes

Keywords

Keyword Purpose
pcType Print to console
pcAsk Get user input
var Assign or reference a variable
list Create a list
createFunc Define a function
func Call a function
if Conditional
elif Else-if branch
else Else branch
while While loop
for For loop
pcAI Built-in AI module
otherCoding Embed code in another language
import Import a Python package
input Access last user input

Symbols

Symbol Meaning
\ End of a statement
- Open a block
--\ Close a block
{} Argument container
"" String / text data
; List item separator
, Parameter separator
== Equals
!= Not equals
< Less than
> Greater than
<= Less than or equal
>= Greater than or equal
+ Addition / string concatenation
- Subtraction
* Multiplication
/ Division

Clone this wiki locally