From a8481afdac21b8b846d5fe159678972a879b11c0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Jun 2020 13:44:19 +0200 Subject: add a comment about the trait aliases --- src/fexpr/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fexpr') diff --git a/src/fexpr/mod.rs b/src/fexpr/mod.rs index f765acf..5d12051 100644 --- a/src/fexpr/mod.rs +++ b/src/fexpr/mod.rs @@ -11,6 +11,8 @@ use itertools::Itertools; use lalrpop_util::{lalrpop_mod, lexer::Token, ParseError}; use thiserror::Error; +// Lalrpop chokes on the associated type specification (it doesn't expect the =), so we need to +// define those aliases here in Rust and then import and use them in the grammar. trait DateProducer = filters::values::Producer>; trait DurationProducer = filters::values::Producer; trait CountProducer = filters::values::Producer; -- cgit v1.2.3