Types
CapFrame[S] = object cft*: CapFrameType name*: string si*: int ck*: CapKind when S is char: sPushed*: string else: sPushed*: S
- Source Edit
CapFrameType = enum cftOpen, cftClose
- Source Edit
Inst = object case op*: Opcode of opChoice, opCommit: ipOffset*: int siOffset*: int of opChr: ch*: char of opLit: lit*: NimNode of opCall, opJump: callLabel*: string callOffset*: int of opSet, opSpan: cs*: CharSet of opCapOpen, opCapClose: capKind*: CapKind capAction*: NimNode capName*: string capSiOffset*: int of opErr: msg*: string of opFail, opReturn, opAny, opNop, opPrecPop: nil of opBackref: refName*: string of opPrecPush: prec*: int assoc*: Assoc failOffset*: int name*: string nimNode*: NimNode indent*: int
- Source Edit
NPegCaptureOutOfRangeError = object of NPegException
- Source Edit
NPegException = object of CatchableError matchLen*: int matchMax*: int
- Source Edit
NPegParseError = object of NPegException
- Source Edit
NPegStackOverflowError = object of NPegException
- Source Edit
NPegUnknownBackrefError = object of NPegException
- Source Edit
Consts
npegBackStackSize {.intdefine.} = 1024
- Source Edit
npegExpand = false
- Source Edit
npegGcsafe = false
- Source Edit
npegInlineMaxLen {.intdefine.} = 30
- Source Edit
npegOptCapShift = true
- Source Edit
npegOptChoiceCommit = true
- Source Edit
npegOptHeadFail = true
- Source Edit
npegOptimize {.intdefine.} = 255
- Source Edit
npegOptSets = true
- Source Edit
npegPattMaxLen {.intdefine.} = 4096
- Source Edit
npegRetStackSize {.intdefine.} = 1024
- Source Edit
npegStacktrace = false
- Source Edit
Procs
proc dumpSubject[S](s: openArray[S]; o: int = 0; l: int = 1024): string
- Source Edit
proc escapeChar(c: char): string {....raises: [KeyError], tags: [], forbids: [].}
- Source Edit
proc flattenChoice(n: NimNode; nChoice: NimNode = nil): NimNode {. ...raises: [Exception], tags: [RootEffect], forbids: [].}
- Source Edit
proc setKrakNode(n: NimNode) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc subIStrCmp(s: openArray[char]; slen: int; si: int; s2: string): bool {. ...raises: [], tags: [], forbids: [].}
- Source Edit