Skip to content

Commit

Permalink
metaprogramming simple declarator
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 13, 2008
1 parent 1a3f3a4 commit 5b5cd54
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/yacc.y
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ declarator

/*51*/
simple_declarator
: T_IDENTIFIER { result = SimpleDeclarator.new(val[0]) }
: T_IDENTIFIER { result = SimpleDeclarator.new([], :name => val[0]) }
;

/*52*/
Expand Down
1 change: 0 additions & 1 deletion lib/zomg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
operation
parameter
attribute
simple_declarator
member
union
typedef
Expand Down
2 changes: 1 addition & 1 deletion lib/zomg/idl/nodes/node.rb
Original file line number Diff line number Diff line change
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 Module ArrayDeclarator
Struct ScopedName Module ArrayDeclarator SimpleDeclarator
}.each { |type| const_set(type.to_sym, Class.new(Node)) }
end
end
Expand Down
12 changes: 0 additions & 12 deletions lib/zomg/idl/nodes/simple_declarator.rb

This file was deleted.

0 comments on commit 5b5cd54

Please sign in to comment.