Expression

class Expression(token, left=None, right=None)[source]

Base class for parsed query expressions.

Methods

Expression.__init__(token[, left, right])

Expression.handle_expr(hed_group[, exact])

Handles parsing the given expression, recursively down the list as needed.

Attributes

Expression.__init__(token, left=None, right=None)[source]
Expression.handle_expr(hed_group, exact=False)[source]

Handles parsing the given expression, recursively down the list as needed.

BaseClass implementation is search terms.

Parameters:
  • hed_group (HedGroup) – The object to search

  • exact (bool) – If True, we are only looking for groups containing this term directly, not descendants.