On Fri, Feb 17, 2006 at 05:22:01AM -0000, [EMAIL PROTECTED] wrote:
> I am glad to announce the first release of rubyfront (a ruby parser powered
> by antlr).
> 
> Even though this is the first release, rubyfront can parse entire
> ruby standard library (over 1500 .rb files).
> 
> To download or check out more details about rubyfront, please go to
> http://seclib.blogspot.com/2006/02/first-release-of-rubyfront.html

This is GREAT news (and I don't say that often).

I installed J2SE 5.0 right after reading this.

Here are the results of the smoke tests with a 1.8 tree from 2006-01-14:

parsersmoketest:
     [java] parser exception for ruby1.8/ext/dl/test/test.rb: line 69:14: 
unexpected token: ?


  r,rs = c2i[?a]
           ========= (?char literals not supported yet?)


     [java] parser exception for ruby1.8/ext/tk/lib/tk.rb: line 1110:23: 
unexpected token: []=
    
      def @tk_cmd_tbl.[]=(idx,val)
                    ========

     [java] parser exception for ruby1.8/lib/yaml/types.rb: line 22:5: 
expecting "end", found 'ensure'
    
    class PrivateType
        def self.tag_subclasses?; false; end
        attr_accessor :type_id, :value
        verbose, $VERBOSE = $VERBOSE, nil
        def initialize( type, val )
            @type_id = type; @value = val
            @value.taguri = "x-private:#{ @type_id }"
        end
        def to_yaml( opts = {} )
            @value.to_yaml( opts )
        end
    ensure
  =============
        $VERBOSE = verbose
    end

     [java] lexer exception for ruby1.8/test/ruby/marshaltestlib.rb: line 
359:21: unexpected char: '@'
    
    marshal_equal(:+@)
                ======== unary +
    marshal_equal(:-@)
    marshal_equal(:[])

     [java] parser exception for ruby1.8/test/ruby/test_file.rb: line 98:19: 
unexpected token: ?
    
    assert_equal([?a], result)
              ======== 

     [java] parser exception for ruby1.8/test/ruby/test_stringchar.rb: line 
167:1: unexpected token: null
  
  this looks like a bug in the lexer, it's returning null as a token (?)

     [java] parser exception for ruby1.8/test/rinda/test_rinda.rb: line 196:27: 
unexpected token: =>

    entry = @ts.write(['1'=>1, '2'=>2, '3'=>3])
                      =========================   
        literal hash inside an array, {} omitted

     [java] parser exception for ruby1.8/test/xmlrpc/test_webrick_server.rb: 
line 91:38: expecting ASSIGN, found ''
    
    assert_equal false, ok
    assert_equal -99, param.faultCode # <= here, no idea why

     [java] lexer exception for ruby1.8/mkconfig.rb: line 19:5: unexpected 
char: '('

def (config = "").write(arg)
   ==============  arbitrary exp allowed as the target of the singleton method 
def

     [java] 1869 ruby programs have been parsed, 9 failed.


Thanks!

-- 
Mauricio Fernandez
_______________________________________________
Rubygrammar-grammarians mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians

Reply via email to