• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

Revision0802f43c877e1b2466a6575b71f0afe35fec7bed (tree)
Zeit2022-04-19 22:35:56
AutorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

Design/Peg.puml now forced downward, by using =up=|> :: Ugly but it works. Also added _base package

Ändern Zusammenfassung

Diff

diff -r ecebad1e4f07 -r 0802f43c877e Design/Peg.puml
--- a/Design/Peg.puml Wed Apr 13 22:53:37 2022 +0200
+++ b/Design/Peg.puml Tue Apr 19 15:35:56 2022 +0200
@@ -1,23 +1,21 @@
11 @startuml
22
3+package _base {
4+
35 abstract AST_BASE {
4- _parse_tree
5- position()
6- position_end()
7- serialize()
6+ -_parse_tree
7+ +position()
8+ +position_end()
9+ ~serialize()
810 }
911
1012 class ID {
11- name
12- validate_or_raise()
13+ +name
14+ #validate_or_raise()
1315 }
1416
1517 ID =|> AST_BASE
16-
17-package Peg #0077ff {
18-
19-abstract PEG
20-PEG ==|> AST_BASE
18+}
2119
2220 package MixIns #Gray {
2321
@@ -39,45 +37,51 @@
3937 }
4038 }
4139
40+package Peg #0077ff {
41+
42+abstract PEG
43+PEG =up=|> AST_BASE
44+
45+
4246
4347 abstract Terminal
44-Terminal ==|> PEG
45-Terminal ---|> MixIn_value_attribute
46-StrTerm ==|> Terminal
47-RexExpTerm ==|> Terminal
48-Number ==|> Terminal
48+Terminal =up=|> PEG
49+Terminal --up--|> MixIn_value_attribute
50+StrTerm =up=|> Terminal
51+RexExpTerm =up=|> Terminal
52+Number =up=|> Terminal
4953
5054 abstract Markers #ORANGE
51-Markers ==|> PEG
55+Markers =up=|> PEG
5256 annotation EOF #ORANGE
53-EOF ==|> Markers
57+EOF =up=|> Markers
5458
5559 abstract NonTerminal
56-NonTerminal ==|> PEG
60+NonTerminal =up=|> PEG
5761 abstract Expression
58-Expression ==|> NonTerminal
62+Expression =up=|> NonTerminal
5963
6064 class Setting {
6165 name : ID
6266 value
6367 }
64-Setting ==|> PEG
65-Setting ---> ID
68+Setting =up=|> PEG
69+Setting -up-> ID
6670
6771 class Rule {
6872 name :ID
6973 expr :[] Expression
7074 }
71-Rule ==|> NonTerminal
72-Rule ---> ID
75+Rule =up=|> NonTerminal
76+Rule -up-> ID
7377 Rule ---> Expression
7478
7579 interface Rules
76-Rules ==|> PEG
77-Rules ---|> MixIn_children_tuple
80+Rules =up=|> PEG
81+Rules --up--|> MixIn_children_tuple
7882
79-ParseRules ==|> Rules
80-Settings ==|> Rules
83+ParseRules =up=|> Rules
84+Settings =up=|> Rules
8185
8286
8387 class Grammar {
@@ -85,42 +89,36 @@
8589 -parse_rules :ParseRules
8690 -settings :Settings
8791 }
88-Grammar ==|> NonTerminal
92+Grammar =up=|> NonTerminal
8993
9094
9195 abstract Group
92-Group ==|> Expression
93-UnorderedGroup ==|> Group
94-UnorderedGroup ---|> MixIn_expr_attribute
96+Group =up=|> Expression
97+UnorderedGroup =up=|> Group
98+UnorderedGroup --up--|> MixIn_expr_attribute
9599 abstract Quantity
96-Quantity ==|> Group
97-Quantity ---|> MixIn_expr_attribute
98-
99-Sequence ==|> Expression
100-Sequence ---|> MixIn_children_tuple
100+Quantity =up=|> Group
101+Quantity --up--|> MixIn_expr_attribute
102+Sequence =up=|> Expression
103+Sequence --up--|> MixIn_children_tuple
101104
102-OrderedChoice ==|> Expression
103-OrderedChoice ---|> MixIn_children_tuple
105+OrderedChoice =up=|> Expression
106+OrderedChoice --up--|> MixIn_children_tuple
104107
105-'========================
106108 class Optional << (?, #0077ff) >>
107-Optional ==|> Quantity
109+Optional =up=|> Quantity
108110 class ZeroOrMore << (*, #0077ff) >>
109-ZeroOrMore ==|> Quantity
111+ZeroOrMore =up=|> Quantity
110112 class OneOrMore << (+, #0077ff) >>
111-OneOrMore ==|> Quantity
113+OneOrMore =up=|> Quantity
112114
113115 abstract Predicate
114-Predicate ==|> Expression
115-Predicate ---|> MixIn_expr_attribute
116+Predicate =up=|> Expression
117+Predicate --up--|> MixIn_expr_attribute
116118 class AndPredicate << (&, #0077ff) notconsuming >>
117-AndPredicate ==|> Predicate
119+AndPredicate =up=|> Predicate
118120 class NotPredicate << (! ,#0077ff) not consuming >>
119-NotPredicate ==|> Predicate
120-
121-
122-
123-
121+NotPredicate =up=|> Predicate
124122
125123 }
126124 @enduml