To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE Programming Environment documentationYASS keywords

The following is a list of the keywords in YASS, as well as their byte-code representation. Note, that certain byte codes are not used for individual keywords but for multiple and are represented by a -.

Byte-code name Byte code Keyword
MATHEMATICAL_EXPRESSION -127 -
LOGICAL_EXPRESSION -126 -
PARAMETERS -125 -
NULL -4 null
UNDEFINED -3 -
EXECUTION_FAILED -2 -
RESERVED -1 -
FRIENDLY 0 -
PRIVATE 1 private
PUBLIC 2 public
NAME 3 _?([A-z][A-z0-9_]*)
VAR 4 $
INT 5 (((-?[1-9]+)|[0-9][0-9]*)(E[0-9]+)?)
DOUBLE 6 (-?[0-9]+((\\.)[0-9]+))(E[0-9]+)?
BOOL 7 true or false
STRING 8 (\".*\")|('.*')
OBJECT 9 -
LIST 13 -
ASSOCIATION 14 -
FUNCTION 15 function or fn
ASSIGN 16 =
END 17 end
LBRA 18 (
RBRA 19 )
COMMA 20 ,
IF 21 if
ELSE 22 else
ELSEIF 23 else if or elseif
WHEN 24 when
IS 25 is
SWITCH 90 switch
CASE 91 case
DEFAULT 92 default
OTHERWISE 26 otherwise
WHILE 27 while
UNTIL 28 until
FOR 29 for
EQUAL 30 ==
NEQUAL 31 !=
GT 32 >
LT 33 <
GTE 34 >=
LTE 35 <=
LAND 36 && or and
LOR 37 || or or
POST_INCREMENT 38 -
PRE_INCREMENT 39 -
POST_DECREMENT 40 -
PRE_DECREMENT 41 -
INCREMENT 42 ++
DECREMENT 43 --
LOOP 45 loop
LSQBR 46 [
RSQBR 47 ]
DO 48 do
LBRACE 49 {
RBRACE 50 }
PLUS 51 +
MULT 52 *
MINUS 53 -
DIVIDE 54 /
MODULO 55 %
CIRCUMFLEX 56 ^
EACH 58 each
AS 59 as
IN 60 in
STRUCTURE 61 structure or struct or class
NEW 62 new or copyof
OBJECT_POINTER 63 ->
DOT 64 .
THEN 65 then
SEMI_COLON 66 ;
THIS 67 this
LAMBDA_CALL 68 -
AT 69 at
QUESTION 70 ?
COLON 71 :
TRY 75 try
CATCH 76 catch
CONCAT 77 &
HEXADECIMAL 78 (0|1)x[0-9A-F]+
OCTAL 79 (0|1)o[0-7]+
BINARY 80 (0|1)b[01]+
THREADED 81 threaded
INCLUDES 82 includes
ALIASES 83 aliases
RETURN 84 return
BREAK 85 break
NEGATION 86 !
VAR_BY_REF 87 &$
INDEX_ACCESSOR 89 -
NEGATIVE 91 -
DEFINE 93 define
ASSERTS 94 asserts
CUSTOM_MODULE 116 -
MIXED_TYPE 117 mixed
STRING_TYPE 118 string
NUMBER_TYPE 119 number
BOOLEAN_TYPE 120 boolean
LIST_TYPE 121 list
FUNCTION_TYPE 123 function
OBJECT_TYPE 124 object
SPECIAL_KEYWORD 125 to or increase or by or inherits.*

The SPECIAL_KEYWORD keyword is a group of syntactic sugar based keywords to help keep the number of byte codes down by combining them into one. It then can perform string checks on the word as opposed to relying on a byte code alone.

Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.