Module: Qrb::Syntax::SeqType

Defined in:
lib/qrb/syntax/seq_type.rb

Instance Method Summary collapse

Instance Method Details

#compile(factory) ⇒ Object



5
6
7
8
# File 'lib/qrb/syntax/seq_type.rb', line 5

def compile(factory)
  elm_type = type.compile(factory)
  factory.seq(elm_type)
end

#to_astObject



10
11
12
# File 'lib/qrb/syntax/seq_type.rb', line 10

def to_ast
  [:seq_type, type.to_ast]
end