Ruby test code fix, and BNF file for protocol

Reviewed By: aditya


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665148 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/rb/TestServer.rb b/test/rb/TestServer.rb
index 6e08313..c0d7b59 100755
--- a/test/rb/TestServer.rb
+++ b/test/rb/TestServer.rb
@@ -60,6 +60,16 @@
     return thing
   end
 
+  def testNest(thing)
+    print "testNest(#{thing})\n"
+    puts "  i32_thing: #{thing.i32_thing}"
+    puts "  with struct: "
+    %w{ string_thing byte_thing i32_thing }.each do |t|
+      puts "    #{t}: #{thing.struct_thing.send(t)}"
+    end
+    return thing
+  end
+
 end
 
 handler = TestHandler.new()