Repository navigation
Expand file tree
/
Copy pathCommandPoint.java
More file actions
60 lines (29 loc) · 2 KB
/
Copy pathCommandPoint.java
File metadata and controls
60 lines (29 loc) · 2 KB
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
53
54
55
56
57
58
59
60
package Breccia.parser;
import java.util.List;
/** A command point in Breccia.
*/
public @DataReflector interface CommandPoint extends Point {
/** The appendage clause, or null if there is none.
*/
public AppendageClause appendageClause() throws ParseError;
/** A list of the command modifiers.
*/
public @DataReflector List<String> modifiers(); // `String` vs. `Enum` for sake of extensibility.
// ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
@DataReflector @TagName("AppendageClause")
public static interface AppendageClause extends Granum {
/** The appendage itself.
*/
public @TagName("Appendage") Granum appendage();
/** The colon ‘:’ that delimits the appendage.
*/
public @TagName("Delimiter") Granum delimiter();
// ━━━ G r a n u m ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/** The default implementation returns ‘AppendageClause’.
*/
public default @Override String tagName() { return "AppendageClause"; }}
// ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
/** The end of a command point.
*/
public static interface End extends Point.End {}}
// Copyright © 2021-2022 Michael Allan. Licence MIT.