Libraries.Language.Compile.Parsing.QuorumLexerConstants Documentation

This is a class that contains constants related to lexing and parsing Quorum programs.

Inherits from: Libraries.Language.Object

Variables Table

VariablesDescription
text DETECT_TEXT
text GREATER_EQUAL_TEXT
text UNTIL_TEXT
text MODULO_TEXT
integer REPEAT
integer DETECT
text RETURNS_TEXT
text NOT_TEXT
text INHERITS_TEXT
text CLASS_TEXT
integer BLUEPRINT
integer MULTIPLY
text STATIC_TEXT
integer PACKAGE_NAME
text LINE_FEED
text RIGHT_PAREN_TEXT
text BOOLEAN_TRUE_TEXT
integer END
text NOW_TEXT
integer NULL
integer INT
text ACTION_TEXT
integer OR
text BOOLEAN_KEYWORD_TEXT
integer BOOLEAN_KEYWORD
text CONSTANT_TEXT
integer ID
text MULTIPLY_TEXT
integer ME
integer RETURNS
integer CAST
integer CLASS
text BOOLEAN_FALSE_TEXTThese are the categories
integer DOUBLE_QUOTE
integer RIGHT_SQR_BRACE
integer WHILE
integer EQUALITY
text PUBLIC_TEXT
text NATIVE_TEXT
integer CONSTANT
text CHECK_TEXT
text EQUALITY_TEXT
text PACKAGE_NAME_TEXT
text REPEAT_TEXT
integer INHERITS
text TEXT_TEXT
integer RETURN
integer TIMES
text LESS_TEXT
text NOT_EQUALS_TEXT
integer ALWAYS
text MULTI_LINE_COMMENT_END_TEXT
integer PRIVATE
integer SAY
integer COMMA
integer ELSE_IF
integer COLON
integer GREATER
text PERIOD_TEXT
text PARENT_TEXT
text SAY_TEXT
text OUTPUT_TEXTThese are the text values for symbols
integer NOT
text INPUT_TEXT
integer OUTPUTThese are the categories
integer NEWLINE
integer ACTION
integer PERIOD
integer LESS
text BLUEPRINT_TEXT
integer NUMBER_KEYWORD
text MULTI_LINE_COMMENT_START_TEXT
integer BOOLEAN
integer TEXT
text ME_TEXT
integer PARENT
text GREATER_TEXT
text PLUS_TEXT
integer NOT_EQUALS
text TIMES_TEXT
integer STATIC
text SINGLE_LINE_COMMENT_TEXT
integer USE
integer RIGHT_PAREN
integer DIVIDE
text PRIVATE_TEXT
integer LESS_EQUAL
text DIVIDE_TEXT
integer CREATE
text ALWAYS_TEXT
integer PUBLIC
integer LEFT_PAREN
text LEFT_PAREN_TEXT
integer DECIMAL
text IF_TEXT
integer LEFT_SQR_BRACE
text COMMA_TEXT
text INTEGER_KEYWORD_TEXT
integer GREATER_EQUAL
integer AND
integer INTEGER_KEYWORD
text ELSE_IF_TEXT
integer UNTIL
integer IF
integer STRING
text ELSE_TEXT
text LESS_EQUAL_TEXT
integer ON
text ON_TEXT
integer INPUT
integer NOW
text DOUBLE_QUOTE_TEXT
text CREATE_TEXT
text ALERT_TEXT
text USE_TEXT
text WHILE_TEXT
text MINUS_TEXT
text CAST_TEXT
integer COMMENTS
text NUMBER_KEYWORD_TEXT
text OR_TEXT
integer ALERT
integer WS
text NULL_TEXT
text END_TEXT
integer ELSE
integer CHECK
text COLON_TEXT
integer MODULO
text RETURN_TEXT
integer PLUS
integer NATIVE
text AND_TEXT
integer MINUS

Actions Documentation

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Example

Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

Example

use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)

GetHashCode()

This action gets the hash code for an object.

Return

integer: The integer hash code of the object.

Example

Object o
integer hash = o:GetHashCode()

IsKeyword(Libraries.Language.Compile.Parsing.Token token)

IsWhiteSpace(Libraries.Language.Compile.Parsing.Token token)