clarkmcc / cel-rust

Common Expression Language interpreter written in Rust
https://crates.io/crates/cel-interpreter
MIT License
377 stars 21 forks source link

Refactor code to hide parser internals #12

Closed hardbyte closed 1 year ago

hardbyte commented 1 year ago

Small refactor in preparation for potentially switching the parser from lalrpop to chumsky as discussed in https://github.com/clarkmcc/cel-rust/pull/2#issuecomment-1665215220

The previous implementation exposed the 'ExpressionParser' from lalrpop directly which I've just replaced with a parse function.

I assume it is worth improving the error handling once the switch is complete.