• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

carthage-software / cel-php / 17638949479
72%

Build:
DEFAULT BRANCH: main
Ran 11 Sep 2025 08:40AM UTC
Jobs 1
Files 56
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Sep 2025 08:36AM UTC coverage: 85.152% (+19.7%) from 65.409%
17638949479

push

github

azjezz
feat: Implement AST, parser, and optimizer infrastructure

This commit introduces a complete recursive descent parser and a comprehensive Abstract Syntax Tree (AST) for the CEL language. The new components provide the foundation for evaluating CEL expressions.

Key additions include:

- A buffered TokenStream with lookahead capabilities to feed tokens to the parser.
- A full set of AST nodes under the Cel\Syntax namespace to represent every construct in the CEL grammar. The AST is designed to be lossless, preserving all source information via Span objects.
- A new, extensible optimization framework built around an OptimizationInterface. This allows for modular, priority-based optimization passes.
- Two initial optimization passes as a proof-of-concept: UnwrapParenthesesOptimization and ShortCircuitBooleanOptimization. The main engine to run these passes is deferred.

A comprehensive test suite has been added for all new components, covering the parser, token stream, every AST node, and the new optimization passes.

All code, type, and mutation (MSI) test coverage remains at 100%.

Signed-off-by: azjezz <azjezz@protonmail.com>

463 of 475 new or added lines in 33 files covered. (97.47%)

671 of 788 relevant lines covered (85.15%)

11.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.5
src/Syntax/Member/CallExpression.php
1
66.67
src/Syntax/SelectorNode.php
2
88.24
src/Optimizer/Optimization/ShortCircuitBooleanOptimization.php
2
50.0
src/Syntax/Member/IdentifierExpression.php
6
97.59
src/Parser/Parser.php
Jobs
ID Job ID Ran Files Coverage
1 17638949479.1 11 Sep 2025 08:39AM UTC 56
85.15
GitHub Action Run
Source Files on build 17638949479
  • Tree
  • List 56
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bdd62fb4 on github
  • Prev Build on main (#17575616898)
  • Next Build on main (#17639817901)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc