Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From trunk
To version-0.0.13
2024-03-18
| | |
11:06 |
|
...
(Leaf
check-in: 726c56c5ed user: stern tags: trunk)
|
11:01 |
|
...
(check-in: 20c2401591 user: stern tags: trunk)
|
2021-06-07
| | |
09:11 |
|
...
(check-in: 7dd6f4dd5c user: stern tags: trunk)
|
2021-06-01
| | |
12:35 |
|
...
(check-in: 11d9b6da63 user: stern tags: trunk, release, version-0.0.13)
|
10:14 |
|
...
(check-in: 968a91bbaa user: stern tags: trunk)
|
| | |
Added .deepsource.toml.
|
1
2
3
4
5
6
7
8
|
+
+
+
+
+
+
+
+
|
version = 1
[[analyzers]]
name = "go"
enabled = true
[analyzers.meta]
import_paths = ["github.com/zettelstore/zettelstore"]
|
| | | | | | |
Changes to LICENSE.txt.
1
2
3
4
5
6
7
8
|
1
2
3
4
5
6
7
8
|
-
+
|
Copyright (c) 2020-present Detlef Stern
Copyright (c) 2020-2021 Detlef Stern
Licensed under the EUPL
Zettelstore is licensed under the European Union Public License, version 1.2 or
later (EUPL v. 1.2). The license is available in the official languages of the
EU. The English version is included here. Please see
https://joinup.ec.europa.eu/community/eupl/og_page/eupl for official
|
︙ | | |
Changes to Makefile.
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
26
27
28
29
30
31
|
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
|
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
+
-
+
-
+
-
+
|
## Copyright (c) 2020-present Detlef Stern
## Copyright (c) 2020-2021 Detlef Stern
##
## This file is part of Zettelstore.
## This file is part of zettelstore.
##
## Zettelstore is licensed under the latest version of the EUPL (European Union
## Public License). Please see file LICENSE.txt for your rights and obligations
## under this license.
.PHONY: check relcheck api version build release clean
.PHONY: check build release clean
check:
go run tools/check/check.go
go run tools/build.go check
relcheck:
go run tools/check/check.go -r
api:
go run tools/testapi/testapi.go
version:
@echo $(shell go run tools/build/build.go version)
@echo $(shell go run tools/build.go version)
build:
go run tools/build/build.go build
go run tools/build.go build
release:
go run tools/build/build.go release
go run tools/build.go release
clean:
go run tools/clean/clean.go
go run tools/build.go clean
|
Changes to README.md.
︙ | | |
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
9
10
11
12
13
14
15
16
17
18
19
20
|
-
-
-
-
-
-
-
+
|
gradually, one major focus is a long-term store of these notes, hence the name
“Zettelstore”.
To get an initial impression, take a look at the
[manual](https://zettelstore.de/manual/). It is a live example of the
zettelstore software, running in read-only mode.
[Zettelstore Client](https://zettelstore.de/client) provides client
software to access Zettelstore via its API more easily, [Zettelstore
Contrib](https://zettelstore.de/contrib) contains contributed software, which
often connects to Zettelstore via its API. Some of the software packages may be
experimental.
The software, including the manual, is licensed
under the [European Union Public License 1.2 (or
later)](https://zettelstore.de/home/file?name=LICENSE.txt&ci=trunk).
[Stay tuned](https://mastodon.social/tags/Zettelstore) …
[Stay tuned](https://twitter.com/zettelstore)…
|
Changes to VERSION.
1
|
1
|
-
+
|
0.18.0-dev
0.0.13
|
Changes to ast/ast.go.
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
-
+
-
+
-
-
-
-
+
-
-
-
+
+
+
+
-
+
-
-
+
+
+
+
|
//-----------------------------------------------------------------------------
// Copyright (c) 2020-present Detlef Stern
// Copyright (c) 2020-2021 Detlef Stern
//
// This file is part of Zettelstore.
// This file is part of zettelstore.
//
// Zettelstore is licensed under the latest version of the EUPL (European Union
// Public License). Please see file LICENSE.txt for your rights and obligations
// under this license.
//
// SPDX-License-Identifier: EUPL-1.2
// SPDX-FileCopyrightText: 2020-present Detlef Stern
//-----------------------------------------------------------------------------
// Package ast provides the abstract syntax tree for parsed zettel content.
// Package ast provides the abstract syntax tree.
package ast
import (
"net/url"
"zettelstore.de/z/zettel"
"zettelstore.de/z/zettel/id"
"zettelstore.de/z/zettel/meta"
"zettelstore.de/z/domain"
"zettelstore.de/z/domain/id"
"zettelstore.de/z/domain/meta"
)
// ZettelNode is the root node of the abstract syntax tree.
// It is *not* part of the visitor pattern.
type ZettelNode struct {
// Zettel domain.Zettel
Meta *meta.Meta // Original metadata
Content zettel.Content // Original content
Content domain.Content // Original content
Zid id.Zid // Zettel identification.
InhMeta *meta.Meta // Metadata of the zettel, with inherited values.
Ast BlockSlice // Zettel abstract syntax tree is a sequence of block nodes.
Syntax string // Syntax / parser that produced the Ast
}
// Node is the interface, all nodes must implement.
type Node interface {
WalkChildren(v Visitor)
Accept(v Visitor)
}
// BlockNode is the interface that all block nodes must implement.
type BlockNode interface {
Node
blockNode()
}
// BlockSlice is a slice of BlockNodes.
type BlockSlice []BlockNode
// ItemNode is a node that can occur as a list item.
type ItemNode interface {
BlockNode
itemNode()
}
|
︙ | | |
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
+
+
+
-
+
-
|
type DescriptionSlice []DescriptionNode
// InlineNode is the interface that all inline nodes must implement.
type InlineNode interface {
Node
inlineNode()
}
// InlineSlice is a slice of InlineNodes.
type InlineSlice []InlineNode
// Reference is a reference to external or internal material.
type Reference struct {
URL *url.URL
Value string
State RefState
}
// RefState indicates the state of the reference.
type RefState int
// Constants for RefState
const (
RefStateInvalid RefState = iota // Invalid Reference
RefStateZettel // Reference to an internal zettel
RefStateSelf // Reference to same zettel with a fragment
RefStateFound // Reference to an existing internal zettel, URL is ajusted
RefStateFound // Reference to an existing internal zettel
RefStateBroken // Reference to a non-existing internal zettel
RefStateHosted // Reference to local hosted non-Zettel, without URL change
RefStateBased // Reference to local non-Zettel, to be prefixed
RefStateQuery // Reference to a zettel query
RefStateExternal // Reference to external material
)
|
Added ast/attr.go.