Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From trunk
To v0.1
2024-04-22
| | |
15:01 |
|
...
(Leaf
check-in: 3e4f0da507 user: stern tags: trunk)
|
2024-04-18
| | |
13:30 |
|
...
(check-in: 85cb9d749b user: stern tags: trunk)
|
2021-11-13
| | |
17:09 |
|
...
(check-in: 8d9dc27ae1 user: stern tags: trunk, release, v0.1.1)
|
2021-11-11
| | |
16:37 |
|
...
(check-in: 7c6fd9bcda user: stern tags: trunk, release, v0.1)
|
14:56 |
|
...
(check-in: 29e086118f 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
26
27
28
29
30
31
|
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
|
## 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 relcheck api build release clean
check:
go run tools/check/check.go
go run tools/build.go check
relcheck:
go run tools/check/check.go -r
go run tools/build.go relcheck
api:
go run tools/testapi/testapi.go
go run tools/build.go testapi
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
21
22
23
24
25
26
|
-
-
+
+
-
+
|
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://t73f.de/r/zsc) provides client software to access
Zettelstore via its API more easily, [Zettelstore
[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.
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
|
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
|
-
+
-
+
-
-
-
-
+
-
-
-
+
+
+
-
+
-
+
-
|
//-----------------------------------------------------------------------------
// 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 {
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.
Ast *BlockListNode // 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)
}
|
︙ | | |
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
+
+
+
+
+
+
+
+
+
+
+
+
|
type ItemNode interface {
BlockNode
itemNode()
}
// ItemSlice is a slice of ItemNodes.
type ItemSlice []ItemNode
// ItemListNode is a list of BlockNodes.
type ItemListNode struct {
List []ItemNode
}
// WalkChildren walks down to the descriptions.
func (iln *ItemListNode) WalkChildren(v Visitor) {
for _, bn := range iln.List {
Walk(v, bn)
}
}
// DescriptionNode is a node that contains just textual description.
type DescriptionNode interface {
ItemNode
descriptionNode()
}
|
︙ | | |
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
87
88
89
90
91
92
93
94
95
96
97
98
99
|
-
+
-
|
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.