From: JCLL Date: 2009-07-24T04:05:06+09:00 Subject: Re: Help needed about Treetop::Runtime::SyntaxNode. > ruby FoobarCompiler.rb gives : > test 0  : parsing aa:1,2,3,14 >         -Success for parsing >         -top level AST instanceof : Program > ./ast.rb:8:in `print': private method `print' called for > # (NoMethodError) >         from ./ast.rb:8:in `map' >         from ./ast.rb:8:in `print' >         from FoobarCompiler.rb:18:in `parse' >         from FoobarCompiler.rb:27:in `test' >         from FoobarCompiler.rb:40 > Sorry ! I finally found my error, which a typo : (lit.build instead of lit) def all [lit.build] + [num.build] + tail.elements.map {|e| e.num.build} end test 0 : parsing aa:1,2,3,14 -Success for parsing -top level AST instanceof : Program literal=foo value=1 value=2 value=3 value=14 Bye ! Jean-Christophe