chevrotain
chevrotain copied to clipboard
Implement Debug helper method
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[]
// ...
}