Module: Finitio::Syntax::MainType
- Includes:
- Node
- Defined in:
- lib/finitio/syntax/type/main_type.rb
Instance Method Summary
collapse
Methods included from Node
included, #metadata, #resolve_ruby_const, #unique_names!
Instance Method Details
#compile(system) ⇒ Object
8
9
10
|
# File 'lib/finitio/syntax/type/main_type.rb', line 8
def compile(system)
system.add_type(type.compile(system), 'Main', metadata)
end
|
#to_ast ⇒ Object
12
13
14
|
# File 'lib/finitio/syntax/type/main_type.rb', line 12
def to_ast
type.to_ast
end
|