Skip to main content

Keywords

Keywords in EasyBite are reserved words that have predefined meaning and are essential to the language syntax. These cannot be used as names for variables, functions, classes, or other user-defined identifiers.


Categorized List

Declarations & Assignment

  • declare, set

Input & Output

  • show, showline, input

Modules & Imports

  • import, as

Control Flow

  • if, then, else, else if, end if, choose, when, otherwise, end choose, try, capture, stop, exit, skip, error, raise

Loops

  • for, from, to, step, by, end for, foreach, end foreach, while, repeat, times, end repeat, iterate, in, over, end iterate, generate

Functions & Callbacks

  • function, return, end function, callback

Classes & OOP

  • class, inherit, end class, method, end method, new, init, end init, this, parent

Asynchrony

  • async, await

Operators & Modifiers

  • inc, dec, remind, is, is in, is not, and, or, not

Literals & Types

  • null, true, false, bytearray

Access Modifiers

  • public, secret

Keyword Reference Table

KeywordCategoryFunctionality
declareDeclarationDeclares a new variable without assigning a value
setAssignmentAssigns a value to a declared variable
showOutputDisplays a value or expression on screen
showlineOutputPrints a blank line for spacing
inputInputReads input from the user
importModulesLoads an external file/module
asAliasRenames an import or assigns alias to types or modules
ifConditionalStarts a conditional block
thenConditionalBegins the body of an if statement
elseConditionalBegins the alternative block of an if statement
else ifConditionalSpecifies a new condition when previous if is false
end ifConditionalEnds an if-else block
chooseConditionalSwitch-style statement for multiple conditions
whenConditionalDefines a specific case in a choose block
otherwiseConditionalDefines a fallback case in a choose block
end chooseConditionalEnds a choose block
tryException HandlingStarts a block to try code that may raise an error
captureException HandlingCatches an error from a try block
stopFlow ControlStops execution of current loop or flow
exitFlow ControlExits the current context (function or loop)
skipFlow ControlSkips current iteration in loop
errorException ControlDefines or throws an error manually
raiseException ControlTriggers an error or custom condition
forLoopBegins a for loop
fromLoop ControlSpecifies the start of a for loop
toLoop ControlSpecifies the end of a for loop
stepLoop ControlSpecifies increment for a loop
byLoop ControlDefines increment in generate loop
end forLoopEnds a for loop
foreachLoopBegins a foreach loop over a collection
end foreachLoopEnds a foreach loop
whileLoopBegins a while loop
repeatLoopStarts a repeat loop
timesLoop ControlSpecifies how many times to repeat
end repeatLoopEnds a repeat loop
iterateLoopStarts a general-purpose iteration block
inLoop ControlSpecifies collection in iterate loop
overLoop ControlUsed in iterate loop to traverse items
end iterateLoopEnds an iterate loop
generateLoopBegins a customized loop with step and range
functionFunctionDeclares a function
returnFunctionReturns a value from a function
end functionFunctionEnds a function block
callbackFunctionDeclares a function pointer or event
classObject-OrientedStarts a class definition
inheritObject-OrientedEnables inheritance in class definition
end classObject-OrientedEnds a class definition
methodObject-OrientedDeclares a method inside a class
end methodObject-OrientedEnds a method definition
initObject-OrientedConstructor method inside a class
end initObject-OrientedEnds constructor block
thisObject-OrientedRefers to current class instance
parentObject-OrientedRefers to superclass or parent method
newObject-OrientedInstantiates a new object
asyncAsynchronyDeclares an asynchronous function
awaitAsynchronyWaits for an asynchronous result
incArithmeticIncrements a value by 1
decArithmeticDecrements a value by 1
remindArithmeticPerforms a modulo operation
isComparisonUsed to test value equality
is inComparisonTests membership of a value in a collection
is notComparisonTests inequality or non-membership
andLogical OperatorLogical AND
orLogical OperatorLogical OR
notLogical OperatorLogical NOT
nullLiteralRepresents an empty or undefined value
trueBooleanRepresents boolean true
falseBooleanRepresents boolean false
bytearrayTypeRepresents a byte array or binary buffer
publicAccess ModifierMarks a class or method as publicly accessible
secretAccess ModifierMarks a class or method as private or restricted