Class: ScaleRb::Metadata::TypeExp::TypeExpParser

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

Instance Method Summary collapse

Constructor Details

#initialize(type_exp) ⇒ TypeExpParser

Returns a new instance of TypeExpParser.



112
113
114
115
116
# File 'lib/scale_rb/metadata/type_exp.rb', line 112

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

Instance Method Details

#parseObject



118
119
120
# File 'lib/scale_rb/metadata/type_exp.rb', line 118

def parse
  build_type
end