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

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)