expression.ts 645 B

12345678910111213141516171819202122232425
  1. // /**
  2. // * Copyright (c) 2018 Mol* contributors, licensed under MIT, See LICENSE file for more info.
  3. // *
  4. // * @author David Sehnal <david.sehnal@gmail.com>
  5. // */
  6. // import Environment from './environment'
  7. // type RuntimeExpression<T = any> = (env: Environment) => T
  8. // export interface ExpressionInfo {
  9. // isConst?: boolean
  10. // }
  11. // namespace RuntimeExpression {
  12. // export function constant<T>(c: T): RuntimeExpression<T> {
  13. // return env => c;
  14. // }
  15. // export function func<T>(f: (env: Environment) => T): RuntimeExpression<T> {
  16. // return env => f(env);
  17. // }
  18. // }
  19. // export default RuntimeExpression