add parser.rb
bugfix on windows.