why the sexp has array in the end
        Posted  
        
            by dorelal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dorelal
        
        
        
        Published on 2010-05-30T20:07:55Z
        Indexed on 
            2010/05/30
            20:12 UTC
        
        
        Read the original article
        Hit count: 198
        
RubyParser.new.parse "1+1" 
s(:call, s(:lit, 1), :+, s(:array, s(:lit, 1))) 
Above code is from this link
Why there is array after + in the Sexp. I am just trying to learn ruby parser and the whole AST thing. I have been programming for a while but have no formal education in computer science. So do point to good article which explains AST etc. Please no dragon book. I tried couple of times but couldn't understand much of that book
© Stack Overflow or respective owner