class Pegasus::Language::Token

Overview

A token declaration, with zero or more rules attached to it.

Defined in:

pegasus/language_def.cr

Constructors

Instance Method Summary

Instance methods inherited from class Pegasus::Language::OptionObject

options : Array(Option) options

Constructor methods inherited from class Pegasus::Language::OptionObject

new new

Constructor Detail

def self.new(regex : String, options = [] of Option) #

[View source]

Instance Method Detail

def ==(other : Token) #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


[View source]
def regex : String #

Gets the regular expression that defines this token.


[View source]