Many cleanups

This commit is contained in:
2024-08-15 21:10:25 -03:00
parent 58e8dac038
commit a3a7b5bd9a
3 changed files with 46 additions and 44 deletions

View File

@@ -225,9 +225,9 @@ module Tartrazine
# 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.
class State
struct State
property name : String = ""
property rules = [] of Rule
property rules = [] of BaseRule
def +(other : State)
new_state = State.new