mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fixed typos.
* tool/ruby_vm/loaders/opt_operand_def.rb: grammer -> grammar * tool/ruby_vm/scripts/insns2vm.rb: beginnig -> beginning git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a3ecb0f82d
								
							
						
					
					
						commit
						2340d5e7ea
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -15,7 +15,7 @@ require_relative '../helpers/scanner' | ||||||
| json    = [] | json    = [] | ||||||
| scanner = RubyVM::Scanner.new '../../../defs/opt_operand.def' | scanner = RubyVM::Scanner.new '../../../defs/opt_operand.def' | ||||||
| path    = scanner.__FILE__ | path    = scanner.__FILE__ | ||||||
| grammer = %r/ | grammar = %r/ | ||||||
|     (?<comment> \# .+? \n                      ){0} |     (?<comment> \# .+? \n                      ){0} | ||||||
|     (?<ws>      \g<comment> | \s               ){0} |     (?<ws>      \g<comment> | \s               ){0} | ||||||
|     (?<insn>    \w+                            ){0} |     (?<insn>    \w+                            ){0} | ||||||
|  | @ -30,15 +30,15 @@ grammer = %r/ | ||||||
| 
 | 
 | ||||||
| until scanner.eos? do | until scanner.eos? do | ||||||
|   break if scanner.scan(/ ^ __END__ $ /x) |   break if scanner.scan(/ ^ __END__ $ /x) | ||||||
|   next  if scanner.scan(/#{grammer} \g<ws>+ /ox) |   next  if scanner.scan(/#{grammar} \g<ws>+ /ox) | ||||||
| 
 | 
 | ||||||
|   line = scanner.scan!(/#{grammer} \g<decl> /mox) |   line = scanner.scan!(/#{grammar} \g<decl> /mox) | ||||||
|   insn = scanner["insn"] |   insn = scanner["insn"] | ||||||
|   args = scanner["args"] |   args = scanner["args"] | ||||||
|   ary  = [] |   ary  = [] | ||||||
|   until args.strip.empty? do |   until args.strip.empty? do | ||||||
|     tmp = StringScanner.new args |     tmp = StringScanner.new args | ||||||
|     tmp.scan(/#{grammer} \g<args> /mox) |     tmp.scan(/#{grammar} \g<args> /mox) | ||||||
|     ary << tmp["arg"] |     ary << tmp["arg"] | ||||||
|     args = tmp["remain"] |     args = tmp["remain"] | ||||||
|     break unless args |     break unless args | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ def generate_parser | ||||||
|   OptionParser.new do |this| |   OptionParser.new do |this| | ||||||
|     this.on "-I", "--srcdir=DIR", <<'end' |     this.on "-I", "--srcdir=DIR", <<'end' | ||||||
|   Historically this option has been passed to the script.  This is |   Historically this option has been passed to the script.  This is | ||||||
|   supposedly because at the beginnig the script was placed outside |   supposedly because at the beginning the script was placed outside | ||||||
|   of the ruby source tree.  Decades passed since the merge of |   of the ruby source tree.  Decades passed since the merge of | ||||||
|   YARV, now I can safely assume this feature is obsolescent.  Just |   YARV, now I can safely assume this feature is obsolescent.  Just | ||||||
|   ignore the passed value here. |   ignore the passed value here. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 hsbt
						hsbt