1. 17 Jul, 2018 1 commit
    • Hans-Peter Deifel's avatar
      Generalize functor expression parser · 9860ade9
      Hans-Peter Deifel authored
      This allows to parser more complex expressions in a single
      functor (like the polynomial functor), instead of only unary and
      binary parsers.
      The downside is that implementing a functor parser got more complex:
      Each functor now has to call the `inner` parser by itself and also
      handle the case where the inner parser succeeds and the outer parser
      fails separately.
      This design doesn't sound particularly elegant, but there is no
      obvious other solution.
  2. 16 Jul, 2018 1 commit
    • Hans-Peter Deifel's avatar
      Implement product functor · 558310f7
      Hans-Peter Deifel authored
      This is only temporal and demonstrates the fact that multi-argument
      functors are implementable. In the future this will be replaced by a
      more general polynomial functor, but the parsing infrastructure for
      functor expressions can't handle that yet.