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