Commits

Cat's Eye Technologies committed b6daa7a

Small "language barrier" fixes. Only 9 failing tests now.

  • Participants
  • Parent commits 096ce3d

Comments (0)

Files changed (1)

File impl/velo.lua/src/velo.lua

             return StringLiteral.new(s)
         elseif scanner.type() == "arg" then
             debug "parsing arg"
-            num = scanner.text().to_i()
+            num = tonumber(scanner.text())
             scanner.scan()
             return Argument.new(num)
         elseif scanner.type() == "ident" then
 
 Object = VeloObject.new 'Object'
 Object.set('extend', VeloMethod.new('extend', function(obj, args)
-    return obj.velo_extend(args[0])
+    return obj.velo_extend(args[1])
 end))
 
 Object.set('self', VeloMethod.new('self', function(obj, args)