chevrotain icon indicating copy to clipboard operation
chevrotain copied to clipboard

Implement Debug helper method

Open bd82 opened this issue 5 years ago • 0 comments

So Chevrotain users could add a single watch expression to assist in the debugging of grammar implementation issues.

export interface debugInfo {
   tokenIdx: number
   nextToken: IToken
   followingText: string
   isBacktracking: boolean
   ruleStack: string[]
  // ...
}

bd82 avatar Jan 02 '19 19:01 bd82