You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
2.9 KiB

  1. /// <reference path="./api.d.ts" />
  2. declare module "pegjs" {
  3. export default peg;
  4. }
  5. declare module "pegjs/lib/grammar-error" {
  6. export default peg.GrammarError;
  7. }
  8. declare module "pegjs/lib/parser" {
  9. export default peg.parser;
  10. }
  11. declare module "pegjs/lib/peg" {
  12. export default peg;
  13. }
  14. declare module "pegjs/lib/ast" {
  15. export default peg.ast;
  16. }
  17. declare module "pegjs/lib/ast/Grammar" {
  18. export default peg.ast.Grammar;
  19. }
  20. declare module "pegjs/lib/ast/Node" {
  21. export default peg.ast.Node;
  22. }
  23. declare module "pegjs/lib/ast/visitor" {
  24. export default peg.ast.visitor;
  25. }
  26. declare module "pegjs/lib/compiler" {
  27. export default peg.compiler;
  28. }
  29. declare module "pegjs/lib/compiler/index" {
  30. export default peg.compiler;
  31. }
  32. declare module "pegjs/lib/compiler/opcodes" {
  33. const opcodes: peg.compiler.IOpcodes;
  34. export default opcodes;
  35. }
  36. declare module "pegjs/lib/compiler/session" {
  37. export default peg.compiler.Session;
  38. }
  39. declare module "pegjs/lib/compiler/passes/calc-report-failures" {
  40. export default peg.compiler.passes.generate.calcReportFailures;
  41. }
  42. declare module "pegjs/lib/compiler/passes/generate-bytecode" {
  43. export default peg.compiler.passes.generate.generateBytecode;
  44. }
  45. declare module "pegjs/lib/compiler/passes/generate-js" {
  46. export default peg.compiler.passes.generate.generateJS;
  47. }
  48. declare module "pegjs/lib/compiler/passes/inference-match-result" {
  49. export default peg.compiler.passes.generate.inferenceMatchResult;
  50. }
  51. declare module "pegjs/lib/compiler/passes/remove-proxy-rules" {
  52. export default peg.compiler.passes.transform.removeProxyRules;
  53. }
  54. declare module "pegjs/lib/compiler/passes/report-duplicate-labels" {
  55. export default peg.compiler.passes.check.reportDuplicateLabels;
  56. }
  57. declare module "pegjs/lib/compiler/passes/report-duplicate-rules" {
  58. export default peg.compiler.passes.check.reportDuplicateRules;
  59. }
  60. declare module "pegjs/lib/compiler/passes/report-infinite-recursion" {
  61. export default peg.compiler.passes.check.reportInfiniteRecursion;
  62. }
  63. declare module "pegjs/lib/compiler/passes/report-infinite-repetition" {
  64. export default peg.compiler.passes.check.reportInfiniteRepetition;
  65. }
  66. declare module "pegjs/lib/compiler/passes/report-undefined-rules" {
  67. export default peg.compiler.passes.check.reportUndefinedRules;
  68. }
  69. declare module "pegjs/lib/compiler/passes/report-unused-rules" {
  70. export default peg.compiler.passes.check.reportUnusedRules;
  71. }
  72. declare module "pegjs/lib/util" {
  73. export default peg.util;
  74. }
  75. declare module "pegjs/lib/util/index" {
  76. export default peg.util;
  77. }
  78. declare module "pegjs/lib/util/js" {
  79. const js: peg.IJavaScriptUtils;
  80. export default js;
  81. }
  82. declare module "pegjs/lib/util/objects" {
  83. const objects: peg.IObjectUtils;
  84. export default objects;
  85. }
  86. declare module "pegjs/lib/util/vm" {
  87. const vm: peg.compiler.ISessionVM;
  88. export default vm;
  89. }