- All Known Implementing Classes:
- And, Literal, Not, Or, Terminal
public interface Expression<T>
A quick implementation of an expression. All are commutative. Syntax is OP(arg1 arg2 ...) where
an arg is either T or another Expression.
TODO this whole thing may make for a better DSL experience if using properly designed fluent
interfaces but we'll never be able to do this. Ideally we'd allow subclasses to just do or("XYZ",
and("ZYX", not("fff")) But that'll never happen )
- Author:
- Gregory Golberg ( grisha@alum.mit.edu)
Copyright © Enremmeta LLC 2015. All Rights
Reserved.