ransack.parser module

parser.py - Provides a Parser class for parsing input data using Lark.

This module defines a custom grammar for parsing various expressions such as comparisons, arithmetic operations, logical operators, IP address parsing, datetime formats, and strings. The Parser class utilizes the Lark parser to build a parse tree for input expressions that conform to the grammar rules.

Classes:
  • Parser: Encapsulates the Lark parser with the defined grammar to parse

    input data into an abstract syntax tree (AST).