From: Caleb Clausen Date: 2009-12-05T01:31:32+09:00 Subject: Re: ruby language parser in ruby On 12/4/09, Brian Candler wrote: > A minor problem with the redparse gem is that it gives most of the files > root-only permissions. I just did 'sudo gem install redparse' Yes, that is indeed most unfortunate and due to be fixed in the next release, which is coming Real Soon Now. I'm not sure how those permissions got all weird (again); it's not something I usually give a lot of thought or attention to, I'm afraid. (Frankly, I wish rubygems would have warned me when I created the gem that some of the files were not world-readable.) > Looking at this code - I don't think I would dare hack it. I think > ruby_parser is more what I was looking for. Would you care to elaborate on that? What didn't you like and/or find hard to understand? What could I do better? Actually, redparse is a fairly normal LALR-based parser, the code divides internally into definitions, rules, and actions. I did invent my own LR language, tho, being as I'm so unhappy with yacc and friends. I'm interested to hear, to tell the truth, what sorts of things you want to change in the existing ruby grammar; I'm very much like playing around with extending the language in various ways. I have a variety of ideas I want to pursue myself, but I'm always interested to hear what new features other people might want.