In package com.copperleaf.kudzu.parser

class com.copperleaf.kudzu.parser.ScanParser

Consume characters from the input until its parser predicts true.

Predicts true when:

  • always

Parsing stops when:

  • its parser predicts true
  • there is no more input remaining

Parsing fails when:

  • its parser fails to parse

Fields

next: Parser

Constructors

constructor(next: Parser, name: String = "")

Consume characters from the input until its parser predicts true.

Predicts true when:

  • always

Parsing stops when:

  • its parser predicts true
  • there is no more input remaining

Parsing fails when:

  • its parser fails to parse

Parameters:
  • next: Parser
  • name: String = ""

Methods

fun predict(input: ParserContext): Boolean

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

Parameters:

Extensions

fun checkNotEmpty(input: ParserContext)

Parameters: