In package com.copperleaf.kudzu.parser

class com.copperleaf.kudzu.parser.CharNotInParser

Consumes a single character not in the set of input characters as long as it is not the escapeChar.

Predicts true when:

  • parsing is successful

Parsing fails when:

  • the next input character is in the blacklisted characters
  • there is no more input
  • the escape character is used without input remaining to escape

Constructors

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

Consumes a single character not in the set of input characters as long as it is not the escapeChar.

Predicts true when:

  • parsing is successful

Parsing fails when:

  • the next input character is in the blacklisted characters
  • there is no more input
  • the escape character is used without input remaining to escape

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

Methods

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

Parameters:

Extensions

fun checkNotEmpty(input: ParserContext)

Parameters: