class Cucumber::BooleanExpressionParser

Defined in:

cucumber/boolean_expression_parser.cr

Constant Summary

ASSOC = {"or" => "left", "and" => "left", "not" => "right"}
PREC = {"(" => -2, ")" => -1, "or" => 0, "and" => 1, "not" => 2}

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def expression_stack : Array(Cucumber::BooleanExpression?) #

[View source]
def infix : String #

[View source]
def infix_to_tokens #

[View source]
def is_op(token) #

[View source]
def operations : Array(String | Symbol | Nil) #

[View source]
def parse(infix : String) #

[View source]
def peek #

[View source]
def pop(arr : Array(Operation | Nil | Cucumber::BooleanExpression | Nil)) #

[View source]
def push_expr(token : String | Symbol | Nil) : Stack | Nil #

[View source]
def reset #

[View source]