Class Parser

java.lang.Object
com.libdbm.cel.parser.Parser

public class Parser extends Object
Recursive descent parser for CEL (Common Expression Language).

Parses CEL expressions into an Abstract Syntax Tree (AST) represented by Expression objects. The parser handles all CEL literal types, operators, function calls, and complex structures.

  • Constructor Details

    • Parser

      public Parser(String input)
      Constructs a new Parser with the specified input string.
      Parameters:
      input - the input string to be parsed
  • Method Details

    • parse

      public Expression parse()
      Parses a CEL expression from the input string.
      Returns:
      The parsed Expression AST node
      Throws:
      ParseError - if the input contains syntax errors