From f402be3aa40e1afed37c10a928a9ae19536eb940 Mon Sep 17 00:00:00 2001 From: inglorion Date: Thu, 25 Aug 2011 20:28:32 +0200 Subject: [PATCH] Fixed more typos --- lib/voodoo/generators/arm_gas_generator.rb | 2 +- lib/voodoo/generators/gas_elf_generator.rb | 2 +- lib/voodoo/generators/i386_nasm_generator.rb | 2 +- lib/voodoo/generators/nasm_elf_generator.rb | 2 +- lib/voodoo/parser.rb | 4 ++-- lib/voodoo/validator.rb | 4 ++-- test/else-if.out | 2 +- test/else-if.voo | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/voodoo/generators/arm_gas_generator.rb b/lib/voodoo/generators/arm_gas_generator.rb index 2dfcad2..25c8c1d 100644 --- a/lib/voodoo/generators/arm_gas_generator.rb +++ b/lib/voodoo/generators/arm_gas_generator.rb @@ -37,7 +37,7 @@ module Voodoo # arg4 <-- r13 points here # # The function prologue of functions generated by this code generator - # creates activiation frames that look as follows: + # creates activation frames that look as follows: # # : # old frame diff --git a/lib/voodoo/generators/gas_elf_generator.rb b/lib/voodoo/generators/gas_elf_generator.rb index 81fc5ca..e36de6b 100644 --- a/lib/voodoo/generators/gas_elf_generator.rb +++ b/lib/voodoo/generators/gas_elf_generator.rb @@ -33,7 +33,7 @@ module Voodoo Tempfile.open(base + '.s') do |asmfile| Tempfile.open(base + '.o') do |elffile| elffile.close - # Write assembly code to nsamfile + # Write assembly code to asmfile @asmgenerator.write asmfile asmfile.close # Find out the name of the GNU assembler diff --git a/lib/voodoo/generators/i386_nasm_generator.rb b/lib/voodoo/generators/i386_nasm_generator.rb index b0e7e92..e8ddefa 100644 --- a/lib/voodoo/generators/i386_nasm_generator.rb +++ b/lib/voodoo/generators/i386_nasm_generator.rb @@ -104,7 +104,7 @@ module Voodoo emit "push dword #{value_ref}\n" end - # Call a function, re-using the current call fram if possible + # Call a function, re-using the current call frame if possible def tail_call fun, *args emit "; tail-call #{fun} #{args.join ' '}\n" if args.length > @environment.args diff --git a/lib/voodoo/generators/nasm_elf_generator.rb b/lib/voodoo/generators/nasm_elf_generator.rb index 02e802c..b1ddd17 100644 --- a/lib/voodoo/generators/nasm_elf_generator.rb +++ b/lib/voodoo/generators/nasm_elf_generator.rb @@ -35,7 +35,7 @@ module Voodoo Tempfile.open(base + '.o') do |elffile| begin elffile.close - # Write NASM code to nsamfile + # Write NASM code to nasmfile @nasmgenerator.write nasmfile nasmfile.close # Find out the name of the nasm executable diff --git a/lib/voodoo/parser.rb b/lib/voodoo/parser.rb index 4c073af..7eae63c 100644 --- a/lib/voodoo/parser.rb +++ b/lib/voodoo/parser.rb @@ -47,7 +47,7 @@ module Voodoo # Parses a top-level element. # Returns an array containing the parts of the element. - # Eeach element of the array is a Symbol, a String, or an + # Each element of the array is a Symbol, a String, or an # Integer. # # For a label, returns: @@ -430,7 +430,7 @@ module Voodoo parse_number when /\w|\\/ # Letter, underscore, or backslash; parse symbol - # Note: \w matches digites, too, so keep this case after \d + # Note: \w matches digits, too, so keep this case after \d parse_symbol when "\"" # Double quote; parse string diff --git a/lib/voodoo/validator.rb b/lib/voodoo/validator.rb index 6eb3275..53e4462 100644 --- a/lib/voodoo/validator.rb +++ b/lib/voodoo/validator.rb @@ -247,7 +247,7 @@ module Voodoo rescue Exception => e if code.respond_to? :[] - # Pass on the execption + # Pass on the exception raise else raise ValidationError.new("#{code.inspect} does not respond to" + @@ -382,7 +382,7 @@ module Voodoo true end - # Base class for errors signalled by the Validator. + # Base class for errors signaled by the Validator. class ValidationError < StandardError def initialize message, code = nil super message diff --git a/test/else-if.out b/test/else-if.out index 047bcc3..360619f 100644 --- a/test/else-if.out +++ b/test/else-if.out @@ -1,3 +1,3 @@ -1 is less than 0 0 is less than 1 -0 is equeal to 0 +0 is equal to 0 diff --git a/test/else-if.voo b/test/else-if.voo index 762c853..a0b8d22 100644 --- a/test/else-if.voo +++ b/test/else-if.voo @@ -5,7 +5,7 @@ section data align equal: -string "%d is equeal to %d\n\x00" +string "%d is equal to %d\n\x00" align greater_than: -- 2.11.4.GIT