Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 935 Bytes

KEYWORDS.md

File metadata and controls

28 lines (26 loc) · 935 Bytes

Keywords in NETL2

  • v - Declare a variable
  • i - Declare an if statement
  • w - Declare a while loop
  • f - Declare a function
  • p - Print a value

Expressions in NETL2

  • + - Add two values
  • - - Subtract two values
  • * - Multiply two values
  • / - Divide two values
  • == - Check if two values are equal
  • != - Check if two values are not equal
  • > - Check if the first value is greater than the second value
  • < - Check if the first value is less than the second value
  • >= - Check if the first value is greater than or equal to the second value
  • <= - Check if the first value is less than or equal to the second value
  • & - Check if both values are true
  • | - Check if either value is true
  • ! - Check if the value is false
  • % - Get the remainder of two values
  • x^y - Calculate the power x of a value y

Types in NETL2

  • int - Signed 32-bit integer
  • str - String
  • bool - Boolean