git @ Cat's Eye Technologies Velo / fb81af6
Small "language barrier" fixes. Only 9 failing tests now. Cat's Eye Technologies 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
523523 return StringLiteral.new(s)
524524 elseif scanner.type() == "arg" then
525525 debug "parsing arg"
526 num = scanner.text().to_i()
526 num = tonumber(scanner.text())
527527 scanner.scan()
528528 return Argument.new(num)
529529 elseif scanner.type() == "ident" then
669669
670670 Object = VeloObject.new 'Object'
671671 Object.set('extend', VeloMethod.new('extend', function(obj, args)
672 return obj.velo_extend(args[0])
672 return obj.velo_extend(args[1])
673673 end))
674674
675675 Object.set('self', VeloMethod.new('self', function(obj, args)