In package com.copperleaf.kudzu.parser

class com.copperleaf.kudzu.parser.OptionalWhitespaceParser

Consume zero or more whitespace characters from the input.

Predicts true when:

  • always

Parsing stops when:

  • the next character is not whitespace
  • there is no more input remaining

Parsing fails when:

  • never

Constructors

constructor(name: String = "")

Consume zero or more whitespace characters from the input.

Predicts true when:

  • always

Parsing stops when:

  • the next character is not whitespace
  • there is no more input remaining

Parsing fails when:

  • never

Parameters:
  • name: String = ""

Methods

fun predict(input: ParserContext): Boolean

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

Parameters:

Extensions

fun checkNotEmpty(input: ParserContext)

Parameters: