Browse Source

Update typings (Plucking)

master
Futago-za Ryuu 3 years ago
parent
commit
e636ee654c
  1. 2
      packages/pegjs/typings/api.d.ts
  2. 6
      packages/pegjs/typings/modules.d.ts

2
packages/pegjs/typings/api.d.ts

@ -195,6 +195,7 @@ declare namespace peg {
interface LabeledExpression extends INode {
type: "labeled";
pick?: true;
label: string;
expression: (
PrefixedExpression
@ -481,6 +482,7 @@ declare namespace peg {
function reportDuplicateLabels( ast: Grammar, session: Session ): void;
function reportInfiniteRecursion( ast: Grammar, session: Session ): void;
function reportInfiniteRepetition( ast: Grammar, session: Session ): void;
function reportIncorrectPlucking( ast: Grammar, session: Session ): void;
}

6
packages/pegjs/typings/modules.d.ts

@ -115,6 +115,12 @@ declare module "pegjs/lib/compiler/passes/report-duplicate-rules" {
}
declare module "pegjs/lib/compiler/passes/report-incorrect-plucking" {
export default peg.compiler.passes.check.reportIncorrectPlucking;
}
declare module "pegjs/lib/compiler/passes/report-infinite-recursion" {
export default peg.compiler.passes.check.reportInfiniteRecursion;

Loading…
Cancel
Save