-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBNF.txt
124 lines (115 loc) · 6.02 KB
/
BNF.txt
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
61
62
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
<alpha> ::= A | a | B | b | C | c | D | d | E | e | F | f |
G | g | H | h | I | i | J | j | K | k | L | l |
M | m | N | n | O | o | P | p | Q | q | R | r |
S | s | T | t | U | u | V | v | W | w | X | x |
Y | y | Z | z
<alphanumeric> ::= A | a | B | b | C | c | D | d | E | e | F | f |
G | g | H | h | I | i | J | j | K | k | L | l |
M | m | N | n | O | o | P | p | Q | q | R | r |
S | s | T | t | U | u | V | v | W | w | X | x |
Y | y | Z | z | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9
<symbol> ::= , | . | ! | @ | # | $ | - | : | ; | " "
<underscore> ::= _
<colon> ::= :
<quotation> ::= "
<startComment> ::= <!--
<endComment> ::= -->
<equalSign> ::= =
<whitespace> ::= " " | \t | \n
<startElem> ::= <
<endOneLineElem>::= />
<endMulLineElem>::= >
<relativeS> ::= "<RelativeLayout"
<relativeE> ::= "</RelativeLayout"
<linearS> ::= "<LinearLayout"
<linearE> ::= "</LinearLayout"
<radioGrS> ::= "<RadioGroup"
<radioGrE> ::= "</RadioGroup"
<progressBar> ::= "<ProgressBar"
<button> ::= "<Button"
<textview> ::= "<TextView"
<imageView> ::= "<ImageView"
<radioButton> ::= "<RadioButton"
<android> ::= "android"
<progress> ::= "progress"
<max> ::= "max"
<maxChildren> ::= "max_children"
<checkedbutton> ::= "checked_button"
<padding> ::= "padding"
<source> ::= "src"
<textColor> ::= "textColor"
<textToken> ::= "text"
<id> ::= "id"
<orientation> ::= "orientation"
<width> ::= "layout_width"
<height> ::= "layout_height"
<layout_value> ::= "match_parent" | "wrap_content" | <number>
<number> ::= <quotation><digit><quotation> | <quotation><number><digit><quotation>
<word> ::= <alphanumeric> | <alphanumeric><word>
<text> ::= <word> | <text><whitespace><text>
<comment> ::= <startComment><text><endComment> | %empty
<linearAttr> ::= <height><width><comment>
| <height><width><orientation><comment>
| <height><width><id><comment>
| <height><width><id><orientation><comment>
<reltiveAttr> ::= <height><width><comment>
| <height><width><id><comment>
<textViewAttr> ::= <height><width><textEl><comment>
| <height><width><textEl><id><comment>
| <height><width><textEl><textColor><comment>
| <height><width><textEl><textColor><id><comment>
<imageViewAttr> ::= <height><width><source><comment>
| <height><width><source><id><comment>
| <height><width><source><padding><comment>
| <height><width><source><padding><id><comment>
<buttonAttr> ::= <height><width><textEl><comment>
| <height><width><textEl><id><comment><comment>
| <height><width><textEl><padding><comment>
| <height><width><textEl><id><padding><comment>
<RadioGroupAtt> ::= <height><width><comment>
| <height><width><id><comment>
| <height><width><checkedButton><comment>
| <height><width><checkedButton><id><comment>
<RadioBtnAtt> ::= <height><width><text><comment>
| <height><width><text><id><comment>
<progressBarAt> ::= <height><width><comment>
| <height><width><id><comment>
| <height><width><max><comment>
| <height><width><progress><comment>
| <height><width><max><id><comment>
| <height><width><max><progress><comment>
| <height><width><id><progress><comment>
| <height><width><max><id><progress><comment>
<layoutHeight> ::= <android><colon><height><equalSign><layout_value><comment>
<layoutWidth> ::= <android><colon><width><equalSign><layout_value><comment>
<orientation> ::= <android><colon><orientation><equalSign><word><comment>
<id> ::= <android><colon><id><equalSign><word><comment>
<textEl> ::= <android><colon><textToken><equalSign><text><comment>
| <android><colon><textToken><equalSign><word><comment>
| <android><colon><textToken><equalSign><number><comment>
<textColor> ::= <android><colon><textColor><equalSign><word><comment>
<source> ::= <android><colon><source><equalSign><word><comment>
<padding> ::= <android><colon><padding><equalSign><number><comment>
<checkedButton> ::= <android><colon><checkedbutton><equalSign><word><comment>
<max> ::= <android><colon><max><equalSign><number><comment>
<progress> ::= <android><colon><progress><equalSign><number><comment>
<maxChildren> ::= <android><colon><maxChildren><equalSign><number><comment>
<radioButtonEl> ::= <radioButton><RadioBtnAtt><endOneLineElem><radioButtonEl><comment>
<imageViewEl> ::= <imageView><imageViewAttr><endOneLineElem><comment>
<textView> ::= <textview><textViewAttr><endOneLineElem><comment>
<button> ::= <button><buttonAttr><endOneLineElem><comment>
<progressBar> ::= <progressBar><progressBarAt><endOneLineElem><comment>
<radioGroup> ::= <radioGrS><RadioGroupAtt><endMulLineElem><radioButtonEl><radioGrE><endMulLineElem><comment>
<linearLayout> ::= <linearS><linearAttr><endMulLineElem><body><linearE><endMulLineElem><comment>
<relativeLayout>::= <relativeS><reltiveAttr><endOneLineElem><comment>
| <relativeS><reltiveAttr><endMulLineElem><body><relativeE><endMulLineElem><comment>
<body> ::= <linearLayout><body><comment>
| <relativeLayout><body><comment>
| <radioGroup><body><comment>
| <progressBar><body><comment>
| <button><body><comment>
| <textView><body><comment>
| <imageViewEl><body><comment>
| <radioButtonEl><body><comment>