enum

Pratt::Precedence

Inherits Enum < Comparable < Value < Object

Constants

DEFAULT = 0

Ordered in increasing precedence. the thing should end when precedence is zero, which corresponds to the end

ASSIGNMENT = 1
CONDITIONAL = 2
SUM = 3
PRODUCT = 4
EXPONENT = 5
PREFIX = 6
POSTFIX = 7
CALL = 8

Instance methods

assignment?

Returns true if this enum value equals ASSIGNMENT

Source
call?

Returns true if this enum value equals CALL

Source
conditional?

Returns true if this enum value equals CONDITIONAL

Source
default?

Returns true if this enum value equals DEFAULT

Source
exponent?

Returns true if this enum value equals EXPONENT

Source
postfix?

Returns true if this enum value equals POSTFIX

Source
prefix?

Returns true if this enum value equals PREFIX

Source
product?

Returns true if this enum value equals PRODUCT

Source
sum?

Returns true if this enum value equals SUM

Source