Parser

halotukozak.alpaca.internal.parser.Parser
abstract class Parser[Ctx <: ParserCtx](using x$1: withDefault[Ctx, Empty])(using tables: Tables[Ctx], errorHandling: ErrorHandling[Ctx])

Base class for parsers.

Users should extend this class and define their grammar rules as Rule instances. The parser uses an LR parsing algorithm with automatic parse table generation.

Type parameters

Ctx

the parser context type; Parser without a type argument uses ParserCtx.Empty

Attributes

Source
Parser.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract fields

val root: Rule[_]

The root rule of the grammar.

The root rule of the grammar.

This is the starting point for parsing.

Attributes

Source
Parser.scala

Givens

Givens

protected given given_Of_Ctx: Of[Ctx]

Attributes

Source
Parser.scala