Skip to content

Commit 3e349fd

Browse files
committed
Add definition of SymbolNode
- Change super-class of WhiteSpaceNode from PunctuationNode to SymbolNode; - Change super-class of PunctuationNode from Parent to SymbolNode; - Update definition of SourceNode; Closes GH-1.
1 parent c5bcb3b commit 3e349fd

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Readme.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,29 +87,39 @@ interface WordNode < Parent {
8787
}
8888
```
8989

90+
### SymbolNode
91+
92+
Symbol ([Parent](#parent)) represents typographical devices like white space, punctuation, signs, and more, different from characers which represent sounds (like letters and numerals).
93+
94+
```
95+
interface SymbolNode < Parent {
96+
type: "SymbolNode";
97+
}
98+
```
99+
90100
### PunctuationNode
91101

92-
Punctuation ([Parent](#parent)) represents typographical devices which aids understanding and correct reading of other grammatical units.
102+
Punctuation ([SymbolNode](#symbolnode)) represents typographical devices which aid understanding and correct reading of other grammatical units.
93103

94104
```
95-
interface PunctuationNode < Parent {
105+
interface PunctuationNode < SymbolNode {
96106
type: "PunctuationNode";
97107
}
98108
```
99109

100110
### WhiteSpaceNode
101111

102-
White Space ([PunctuationNode](#punctuation)) represents typographical devices devoid of content, separating other grammatical units.
112+
White Space ([SymbolNode](#symbolnode)) represents typographical devices devoid of content, separating other grammatical units.
103113

104114
```
105-
interface WhiteSpaceNode < PunctuationNode {
115+
interface WhiteSpaceNode < SymbolNode {
106116
type: "WhiteSpaceNode";
107117
}
108118
```
109119

110120
### SourceNode
111121

112-
Source ([Text](#text)) represents an external (ungrammatical) value embedded into a grammatical unit: a hyperlink, an emoticon, and such.
122+
Source ([Text](#text)) represents an external (ungrammatical) value embedded into a grammatical unit: a hyperlink, a line, and such.
113123

114124
```
115125
interface SourceNode < Text {

0 commit comments

Comments
 (0)