Module parser

Module parser 

Source
Expand description

The parser is a recursive descent parser that can parse a string and evalute it

Supported operands are >,<,>=,<=,==

evaluate_expressions is the main function that evaluates two expressions which is recursively called for each sub-expression (group of AND and OR expression)

Later, parse_comparison is called, which parses a comparison expression

Enums§

Expression
Expression contains all the possible type of symbols that can be parsed.
Operator
Operator contains all the possible operators that can be used

Functions§

evaluate_expressions
Evaluate two parsed expressions – the first stage of the parser.
parse_expression
Parse an expression – the second stage of the parser.