June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,9 @@
|
|||
import extensions.
|
||||
|
||||
program =
|
||||
[
|
||||
literal s := "12345".
|
||||
s := s toInt + 1.
|
||||
|
||||
console printLine(s).
|
||||
].
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
I8 *s;
|
||||
|
||||
s = "10";
|
||||
s = Str2I64(s) + 1;
|
||||
Print("%d\n", s);
|
||||
|
||||
s = "-10";
|
||||
s = Str2I64(s) + 1;
|
||||
Print("%d\n", s);
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import Base.+
|
||||
Base.:+(s::AbstractString, n::Real) = string(parse(s) + n)
|
||||
|
||||
+(s::String, n::Integer) = string(parse(Int, s) + n)
|
||||
@show "125" + 1
|
||||
@show "125.15" + 1
|
||||
@show "1234567890987654321" + 1
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Print[FromDigits["1234"] + 1]
|
||||
FromDigits["1234"] + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue