Skip to main content

Module ast

Module ast 

Source
Expand description

Abstract syntax tree nodes for parsed range expressions.

Structs§

List
Bracketed list of simple cards.
Term
Product of cards, lists, and spans forming a range term.

Enums§

CardRank
Rank slot in a range card: concrete, variable, or wildcard.
CardSuit
Suit slot in a range card: concrete or variable.
Expr
Parsed range expression tree.
ListElem
Element of a bracketed card list.
RangeCard
Card pattern within a range, combining rank and suit as concrete, variable, or any.
RankVar
Single-letter rank variable token.
Span
Rank span across one or two endpoints.
SpanElem
One card in a span endpoint.
SuitVar
Single-letter suit variable token.
TermElem
Single element within a Term.

Type Aliases§

RankConst
RankInt
Signed integer form of a rank used for arithmetic.
SuitConst