struct Tartrazine::State

Overview

A Lexer state. A state has a name and a list of rules. The state machine has a state stack containing references to states to decide which rules to apply.

Defined in:

lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def +(other : State) #

[View source]
def initialize #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def rules : Array(Tartrazine::BaseRule) #

[View source]
def rules=(rules : Array(Tartrazine::BaseRule)) #

[View source]