Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
metaprogramming module node
  • Loading branch information
tenderlove committed Aug 13, 2008
1 parent 411d05c commit e32912a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
4 changes: 3 additions & 1 deletion lib/yacc.y
Expand Up @@ -134,7 +134,9 @@ definition
/*3*/
module
: T_MODULE T_IDENTIFIER T_LEFT_CURLY_BRACKET
definitions T_RIGHT_CURLY_BRACKET { result = Module.new(val[1], val[3]) }
definitions T_RIGHT_CURLY_BRACKET {
result = Module.new(val[3], :name => val[1])
}
;

/*4*/
Expand Down
1 change: 0 additions & 1 deletion lib/zomg.rb
Expand Up @@ -5,7 +5,6 @@
%w{
node
specification
module
interface
operation
parameter
Expand Down
14 changes: 0 additions & 14 deletions lib/zomg/idl/nodes/module.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/zomg/idl/nodes/node.rb
Expand Up @@ -39,7 +39,7 @@ def to_ruby
FloatingPointLiteral BooleanLiteral Context StringLiteral
WideStringLiteral WideCharacterLiteral UnaryMinus Object
UnaryPlus WString String Case Enum Exception ValueBoxDcl
Struct ScopedName
Struct ScopedName Module
}.each { |type| const_set(type.to_sym, Class.new(Node)) }
end
end
Expand Down

0 comments on commit e32912a

Please sign in to comment.