In package com.copperleaf.kudzu.parser

class com.copperleaf.kudzu.parser.DigitParser

Consumes a single digit character as long as it is not the escapeChar.

Predicts true when:

  • parsing is successful

Parsing fails when:

  • the next input character is not a digit
  • there is no more input
  • the escape character is used without input remaining to escape

Constructors

constructor(escapeChar: Char? = null, name: String = "")

Consumes a single digit character as long as it is not the escapeChar.

Predicts true when:

  • parsing is successful

Parsing fails when:

  • the next input character is not a digit
  • there is no more input
  • the escape character is used without input remaining to escape

Parameters:
  • escapeChar: Char = null
  • name: String = ""

Methods

fun parse(input: ParserContext): <Node, ParserContext>

Parameters:

Extensions

fun checkNotEmpty(input: ParserContext)

Parameters: