Libraries.Language.Compile.Parsing.QuorumLexerConstants Documentation

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

Inherits from: Libraries.Language.Object

Summary

Variable Summary Table

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

Actions Summary Table

ActionsDescription
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
GetHashCode()This action gets the hash code for an object.

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.

Example Code

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

Parameters

Return

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

Equals(Libraries.Language.Object object)

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

Example Code

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

Parameters

Return

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

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode

Return

integer: The integer hash code of the object.