lib/lit/parser/ast_builder.rb in litl-parser-0.1.0 vs lib/lit/parser/ast_builder.rb in litl-parser-0.1.1
- old
+ new
@@ -97,9 +97,10 @@
case value
when "String" then AST::Type::Primitive::String
when "Integer" then AST::Type::Primitive::Integer
when "Float" then AST::Type::Primitive::Float
when "Boolean" then AST::Type::Primitive::Boolean
+ when "Unit" then AST::Type::Primitive::Unit
when "Option" then AST::Type::Primitive::Option.new(build_type(raw_type.fetch("attrs")))
when "Array" then AST::Type::Primitive::Array.new(build_type(raw_type.fetch("attrs")))
when "Map"
attrs = raw_type.fetch("attrs")