|
|
@ -34,7 +34,7 @@ func parseInstruction(input string) (*hal.ProgrammedInstruction, error) { |
|
|
|
Instruction: instruction, |
|
|
|
Instruction: instruction, |
|
|
|
} |
|
|
|
} |
|
|
|
if len(args) == 1 { |
|
|
|
if len(args) == 1 { |
|
|
|
operand, err := strconv.ParseInt(args[1], 10, 64) |
|
|
|
operand, err := strconv.ParseFloat(args[1], 64) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return nil, fmt.Errorf("error while parsing operand for instruction '%s': %v", input, err) |
|
|
|
return nil, fmt.Errorf("error while parsing operand for instruction '%s': %v", input, err) |
|
|
|
} |
|
|
|
} |
|
|
|