Play

Check-in [7c2806c6fc]
Login
Overview
Comment:Begin working on a proper standard_library.
Timelines: family | ancestors | descendants | both | stdlib
Files: files | file ages | folders
SHA3-256: 7c2806c6fca6dad62e434b40aff1312ca3d0a2522394164378dd82b2ace7f436
User & Date: robin.hansen on 2021-04-07 14:32:12
Other Links: branch diff | manifest | tags
Context
2021-04-08
13:42
Rename stdlib/basic to stdlib/core. check-in: e4c78a4a49 user: robin.hansen tags: stdlib
2021-04-07
14:32
Begin working on a proper standard_library. check-in: 7c2806c6fc user: robin.hansen tags: stdlib
13:39
Add cli program to compile projects, run functions and initiate new projects. Leaf check-in: 9318fc4c3b user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Deleted stdlib/lib/useless/junk version [a7ffc6f8bf].

Deleted stdlib/lib/version/play.json version [73b800a441].

1
2
3
4
5
6
7
8
9
10
11
12
{
    "name": "play/version",
    "version": "1.0.0",
    "language-version": "0.2.0",
    "exposed-modules": [
        "version/data"
    ],
    "dependencies": {
    },
    "package-paths": [
    ]
}
<
<
<
<
<
<
<
<
<
<
<
<
























Deleted stdlib/lib/version/src/version/data.play version [f4d9804625].

1
2
def: minor
: 1
<
<




Modified stdlib/play.json from [163a77ae7d] to [5ce420ba56].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
    "name": "play/standard_library",
    "version": "0.2.0",
    "language-version": "0.2.0",
    "exposed-modules": [
        "basic"
    ],
    "dependencies": {
        "play/version": "1.0.0"
    },
    "package-paths": [
        "lib/*"
    ]
}







|
<
<
|
<
<

1
2
3
4
5
6
7
8


9


10
{
    "name": "play/standard_library",
    "version": "0.2.0",
    "language-version": "0.2.0",
    "exposed-modules": [
        "basic"
    ],
    "dependencies": {},


    "package-paths": []


}

Modified stdlib/src/basic.play from [0ef79cb1cb] to [4976a8ad2e].















1
2
























def: version
: tmp/mod/major /version/data/minor + 










>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
<
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

16
17
18
19
20
21
22
23
24
25
defmulti: zero?
type: Int -- Int
: Int( value 0 )
  drop 1
: Int
  drop 0

defmulti: select
type: Int a a -- a
: Int( value 0 )
  rotate drop drop
: Int
  drop swap drop

def: if

type: a... Int [ a... -- b... ] [ a... -- b... ] -- b...
: select !

def: over
type: a b -- a b a
: swap dup rotate

def: drop2
type: a b c -- a
: drop drop

Deleted stdlib/src/tmp/mod.play version [2e69dc67e4].

1
2
def: major
: 2
<
<