In package com.copperleaf.kudzu.parser

class com.copperleaf.kudzu.parser.SequenceParser

Consume a sequence of parsers in order. Each parser in the sequence must parse successfully.

Predicts true when:

  • the first parser predicts true

Parsing fails when:

  • any of its parsers fails to parse

Constructors

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

Consume a sequence of parsers in order. Each parser in the sequence must parse successfully.

Predicts true when:

  • the first parser predicts true

Parsing fails when:

  • any of its parsers fails to parse

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

Methods

fun predict(input: ParserContext): Boolean

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

Parameters:

Extensions

fun checkNotEmpty(input: ParserContext)

Parameters: