class

Bantam::BantamParser

Inherits Pratt::TokenType < Pratt::Parser < Reference < Object

Extends the generic Parser class with support for parsing the actual Bantam grammar.

Constructors

Instance methods

infix_left(token : Type, precedence : Pratt::Precedence)

Registers a left-associative binary operator parselet for the given token and precedence.

Source
infix_right(token : Type, precedence : Pratt::Precedence)

Registers a right-associative binary operator parselet for the given token and precedence.

Source
postfix(token : Type, precedence : Pratt::Precedence)

Registers a postfix unary operator parselet for the given token and precedence.

Source
prefix(token : Type, precedence : Pratt::Precedence)

Registers a prefix unary operator parselet for the given token and precedence.

Source