symbol.ts 1017 B

1234567891011121314151617181920212223242526272829303132
  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. // import RuntimeExpression from './expression'
  8. // import Expression from '../language/expression';
  9. // type SymbolRuntime = SymbolRuntime.Dynamic | SymbolRuntime.Static
  10. // namespace SymbolRuntime {
  11. // export interface Static {
  12. // kind: 'static',
  13. // readonly runtime: (ctx: any, args: Arguments) => any,
  14. // readonly attributes: Attributes
  15. // }
  16. // export interface Dynamic {
  17. // kind: 'dynamic',
  18. // readonly compile: (env: Environment, args: Expression.Arguments) => RuntimeExpression
  19. // }
  20. // export interface Attributes { isStatic: boolean }
  21. // export type Table = Map<string, SymbolRuntime>
  22. // export type Arguments = ArrayLike<RuntimeExpression> | { [name: string]: RuntimeExpression | undefined }
  23. // }
  24. // export { SymbolRuntime }