enum Drizzle::Precedence

Overview

Enum representing the precedence order of operators in Drizzle. Lower precedence operators will have a lower integer value, allowing for easy comparisons between precedences.

Defined in:

drizzle/parser.cr

Enum Members

LOWEST = 0

Default

EQUALS = 1

==

LESSGREATER = 2

> or <

SUM = 3

+ or -

PRODUCT = 4

* or /

PREFIX = 5

-x

CALL = 6

func(x)

Instance Method Summary

Instance Method Detail

def call? #

[View source]
def equals? #

[View source]
def lessgreater? #

[View source]
def lowest? #

[View source]
def prefix? #

[View source]
def product? #

[View source]
def sum? #

[View source]