Mercurial > projects > dstep
comparison scripts/dgen.rb @ 10:27e00625790b
Fixed: bindings were private
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 09 Jul 2009 23:25:18 +0200 |
parents | 3592b41928fe |
children | 07194b026fa4 |
comparison
equal
deleted
inserted
replaced
9:3592b41928fe | 10:27e00625790b |
---|---|
661 const = constant.const == "true" | 661 const = constant.const == "true" |
662 | 662 |
663 if constant.type == "@" | 663 if constant.type == "@" |
664 @d_constants << { :name => constant.name.dup, :type => constant.declaredType.gsub("*", ""), :const => const } | 664 @d_constants << { :name => constant.name.dup, :type => constant.declaredType.gsub("*", ""), :const => const } |
665 | 665 |
666 str << "private ".indent(2) | 666 str << "package ".indent(2) |
667 str << "const id" if const | 667 str << "const id" if const |
668 str << "id" unless const | 668 str << "id" unless const |
669 str << " " | 669 str << " " |
670 str << get_identifier(constant["name"]).nl | 670 str << get_identifier(constant["name"]).nl |
671 else | 671 else |