Class: ScaleRb::OldRegistry::TypeExp::TypeExpParser

Inherits:
Object
  • Object
show all
Defined in:
lib/scale_rb/old_registry.rb

Instance Method Summary collapse

Constructor Details

#initialize(type_exp) ⇒ TypeExpParser

Returns a new instance of TypeExpParser.



368
369
370
371
372
# File 'lib/scale_rb/old_registry.rb', line 368

def initialize(type_exp)
  @type_exp = type_exp
  @tokenizer = Tokenizer.new(type_exp)
  @current_token = @tokenizer.next_token
end

Instance Method Details

#parseObject



374
375
376
# File 'lib/scale_rb/old_registry.rb', line 374

def parse
  build_type
end