mirror of https://github.com/golang/go.git
630 lines
12 KiB
Go
630 lines
12 KiB
Go
package atom
|
|
|
|
const (
|
|
A Atom = 1
|
|
Abbr Atom = 2
|
|
Accept Atom = 3
|
|
AcceptCharset Atom = 4
|
|
Accesskey Atom = 5
|
|
Action Atom = 6
|
|
Address Atom = 7
|
|
Align Atom = 8
|
|
Alt Atom = 9
|
|
Annotation Atom = 10
|
|
Applet Atom = 11
|
|
Area Atom = 12
|
|
Article Atom = 13
|
|
Aside Atom = 14
|
|
Async Atom = 15
|
|
Audio Atom = 16
|
|
Autocomplete Atom = 17
|
|
Autofocus Atom = 18
|
|
Autoplay Atom = 19
|
|
B Atom = 20
|
|
Base Atom = 21
|
|
Bdi Atom = 22
|
|
Bdo Atom = 23
|
|
Blockquote Atom = 24
|
|
Body Atom = 25
|
|
Border Atom = 26
|
|
Br Atom = 27
|
|
Button Atom = 28
|
|
Canvas Atom = 29
|
|
Caption Atom = 30
|
|
Center Atom = 31
|
|
Challenge Atom = 32
|
|
Charset Atom = 33
|
|
Checked Atom = 34
|
|
Cite Atom = 35
|
|
Class Atom = 36
|
|
Code Atom = 37
|
|
Col Atom = 38
|
|
Colgroup Atom = 39
|
|
Color Atom = 40
|
|
Cols Atom = 41
|
|
Colspan Atom = 42
|
|
Command Atom = 43
|
|
Content Atom = 44
|
|
Contenteditable Atom = 45
|
|
Contextmenu Atom = 46
|
|
Controls Atom = 47
|
|
Coords Atom = 48
|
|
Crossorigin Atom = 49
|
|
Data Atom = 50
|
|
Datalist Atom = 51
|
|
Datetime Atom = 52
|
|
Dd Atom = 53
|
|
Default Atom = 54
|
|
Defer Atom = 55
|
|
Del Atom = 56
|
|
Details Atom = 57
|
|
Dfn Atom = 58
|
|
Dialog Atom = 59
|
|
Dir Atom = 60
|
|
Dirname Atom = 61
|
|
Disabled Atom = 62
|
|
Div Atom = 63
|
|
Dl Atom = 64
|
|
Download Atom = 65
|
|
Draggable Atom = 66
|
|
Dropzone Atom = 67
|
|
Dt Atom = 68
|
|
Em Atom = 69
|
|
Embed Atom = 70
|
|
Enctype Atom = 71
|
|
Fieldset Atom = 72
|
|
Figcaption Atom = 73
|
|
Figure Atom = 74
|
|
Font Atom = 75
|
|
Footer Atom = 76
|
|
For Atom = 77
|
|
Form Atom = 78
|
|
Formaction Atom = 79
|
|
Formenctype Atom = 80
|
|
Formmethod Atom = 81
|
|
Formnovalidate Atom = 82
|
|
Formtarget Atom = 83
|
|
Frame Atom = 84
|
|
Frameset Atom = 85
|
|
H1 Atom = 86
|
|
H2 Atom = 87
|
|
H3 Atom = 88
|
|
H4 Atom = 89
|
|
H5 Atom = 90
|
|
H6 Atom = 91
|
|
Head Atom = 92
|
|
Header Atom = 93
|
|
Headers Atom = 94
|
|
Height Atom = 95
|
|
Hgroup Atom = 96
|
|
Hidden Atom = 97
|
|
High Atom = 98
|
|
Hr Atom = 99
|
|
Href Atom = 100
|
|
Hreflang Atom = 101
|
|
Html Atom = 102
|
|
HttpEquiv Atom = 103
|
|
I Atom = 104
|
|
Icon Atom = 105
|
|
Id Atom = 106
|
|
Iframe Atom = 107
|
|
Img Atom = 108
|
|
Inert Atom = 109
|
|
Input Atom = 110
|
|
Ins Atom = 111
|
|
Ismap Atom = 112
|
|
Itemid Atom = 113
|
|
Itemprop Atom = 114
|
|
Itemref Atom = 115
|
|
Itemscope Atom = 116
|
|
Itemtype Atom = 117
|
|
Kbd Atom = 118
|
|
Keygen Atom = 119
|
|
Keytype Atom = 120
|
|
Kind Atom = 121
|
|
Label Atom = 122
|
|
Lang Atom = 123
|
|
Legend Atom = 124
|
|
Li Atom = 125
|
|
Link Atom = 126
|
|
List Atom = 127
|
|
Loop Atom = 128
|
|
Low Atom = 129
|
|
Manifest Atom = 130
|
|
Map Atom = 131
|
|
Mark Atom = 132
|
|
Max Atom = 133
|
|
Maxlength Atom = 134
|
|
Media Atom = 135
|
|
Mediagroup Atom = 136
|
|
Menu Atom = 137
|
|
Meta Atom = 138
|
|
Meter Atom = 139
|
|
Method Atom = 140
|
|
Min Atom = 141
|
|
Multiple Atom = 142
|
|
Muted Atom = 143
|
|
Name Atom = 144
|
|
Nav Atom = 145
|
|
Nobr Atom = 146
|
|
Noscript Atom = 147
|
|
Novalidate Atom = 148
|
|
Object Atom = 149
|
|
Ol Atom = 150
|
|
Onabort Atom = 151
|
|
Onafterprint Atom = 152
|
|
Onbeforeprint Atom = 153
|
|
Onbeforeunload Atom = 154
|
|
Onblur Atom = 155
|
|
Oncancel Atom = 156
|
|
Oncanplay Atom = 157
|
|
Oncanplaythrough Atom = 158
|
|
Onchange Atom = 159
|
|
Onclick Atom = 160
|
|
Onclose Atom = 161
|
|
Oncontextmenu Atom = 162
|
|
Oncuechange Atom = 163
|
|
Ondblclick Atom = 164
|
|
Ondrag Atom = 165
|
|
Ondragend Atom = 166
|
|
Ondragenter Atom = 167
|
|
Ondragleave Atom = 168
|
|
Ondragover Atom = 169
|
|
Ondragstart Atom = 170
|
|
Ondrop Atom = 171
|
|
Ondurationchange Atom = 172
|
|
Onemptied Atom = 173
|
|
Onended Atom = 174
|
|
Onerror Atom = 175
|
|
Onfocus Atom = 176
|
|
Onhashchange Atom = 177
|
|
Oninput Atom = 178
|
|
Oninvalid Atom = 179
|
|
Onkeydown Atom = 180
|
|
Onkeypress Atom = 181
|
|
Onkeyup Atom = 182
|
|
Onload Atom = 183
|
|
Onloadeddata Atom = 184
|
|
Onloadedmetadata Atom = 185
|
|
Onloadstart Atom = 186
|
|
Onmessage Atom = 187
|
|
Onmousedown Atom = 188
|
|
Onmousemove Atom = 189
|
|
Onmouseout Atom = 190
|
|
Onmouseover Atom = 191
|
|
Onmouseup Atom = 192
|
|
Onmousewheel Atom = 193
|
|
Onoffline Atom = 194
|
|
Ononline Atom = 195
|
|
Onpagehide Atom = 196
|
|
Onpageshow Atom = 197
|
|
Onpause Atom = 198
|
|
Onplay Atom = 199
|
|
Onplaying Atom = 200
|
|
Onpopstate Atom = 201
|
|
Onprogress Atom = 202
|
|
Onratechange Atom = 203
|
|
Onreset Atom = 204
|
|
Onresize Atom = 205
|
|
Onscroll Atom = 206
|
|
Onseeked Atom = 207
|
|
Onseeking Atom = 208
|
|
Onselect Atom = 209
|
|
Onshow Atom = 210
|
|
Onstalled Atom = 211
|
|
Onstorage Atom = 212
|
|
Onsubmit Atom = 213
|
|
Onsuspend Atom = 214
|
|
Ontimeupdate Atom = 215
|
|
Onunload Atom = 216
|
|
Onvolumechange Atom = 217
|
|
Onwaiting Atom = 218
|
|
Open Atom = 219
|
|
Optgroup Atom = 220
|
|
Optimum Atom = 221
|
|
Option Atom = 222
|
|
Output Atom = 223
|
|
P Atom = 224
|
|
Param Atom = 225
|
|
Pattern Atom = 226
|
|
Ping Atom = 227
|
|
Placeholder Atom = 228
|
|
Poster Atom = 229
|
|
Pre Atom = 230
|
|
Preload Atom = 231
|
|
Progress Atom = 232
|
|
Q Atom = 233
|
|
Radiogroup Atom = 234
|
|
Readonly Atom = 235
|
|
Rel Atom = 236
|
|
Required Atom = 237
|
|
Reversed Atom = 238
|
|
Rows Atom = 239
|
|
Rowspan Atom = 240
|
|
Rp Atom = 241
|
|
Rt Atom = 242
|
|
Ruby Atom = 243
|
|
S Atom = 244
|
|
Samp Atom = 245
|
|
Sandbox Atom = 246
|
|
Scope Atom = 247
|
|
Scoped Atom = 248
|
|
Script Atom = 249
|
|
Seamless Atom = 250
|
|
Section Atom = 251
|
|
Select Atom = 252
|
|
Selected Atom = 253
|
|
Shape Atom = 254
|
|
Size Atom = 255
|
|
Sizes Atom = 256
|
|
Small Atom = 257
|
|
Source Atom = 258
|
|
Span Atom = 259
|
|
Spellcheck Atom = 260
|
|
Src Atom = 261
|
|
Srcdoc Atom = 262
|
|
Srclang Atom = 263
|
|
Start Atom = 264
|
|
Step Atom = 265
|
|
Strong Atom = 266
|
|
Style Atom = 267
|
|
Sub Atom = 268
|
|
Summary Atom = 269
|
|
Sup Atom = 270
|
|
Tabindex Atom = 271
|
|
Table Atom = 272
|
|
Target Atom = 273
|
|
Tbody Atom = 274
|
|
Td Atom = 275
|
|
Textarea Atom = 276
|
|
Tfoot Atom = 277
|
|
Th Atom = 278
|
|
Thead Atom = 279
|
|
Time Atom = 280
|
|
Title Atom = 281
|
|
Tr Atom = 282
|
|
Track Atom = 283
|
|
Translate Atom = 284
|
|
Type Atom = 285
|
|
Typemustmatch Atom = 286
|
|
U Atom = 287
|
|
Ul Atom = 288
|
|
Usemap Atom = 289
|
|
Value Atom = 290
|
|
Var Atom = 291
|
|
Video Atom = 292
|
|
Wbr Atom = 293
|
|
Width Atom = 294
|
|
Wrap Atom = 295
|
|
)
|
|
|
|
const max Atom = 295
|
|
|
|
var table = []string{
|
|
"",
|
|
"a",
|
|
"abbr",
|
|
"accept",
|
|
"accept-charset",
|
|
"accesskey",
|
|
"action",
|
|
"address",
|
|
"align",
|
|
"alt",
|
|
"annotation",
|
|
"applet",
|
|
"area",
|
|
"article",
|
|
"aside",
|
|
"async",
|
|
"audio",
|
|
"autocomplete",
|
|
"autofocus",
|
|
"autoplay",
|
|
"b",
|
|
"base",
|
|
"bdi",
|
|
"bdo",
|
|
"blockquote",
|
|
"body",
|
|
"border",
|
|
"br",
|
|
"button",
|
|
"canvas",
|
|
"caption",
|
|
"center",
|
|
"challenge",
|
|
"charset",
|
|
"checked",
|
|
"cite",
|
|
"class",
|
|
"code",
|
|
"col",
|
|
"colgroup",
|
|
"color",
|
|
"cols",
|
|
"colspan",
|
|
"command",
|
|
"content",
|
|
"contenteditable",
|
|
"contextmenu",
|
|
"controls",
|
|
"coords",
|
|
"crossorigin",
|
|
"data",
|
|
"datalist",
|
|
"datetime",
|
|
"dd",
|
|
"default",
|
|
"defer",
|
|
"del",
|
|
"details",
|
|
"dfn",
|
|
"dialog",
|
|
"dir",
|
|
"dirname",
|
|
"disabled",
|
|
"div",
|
|
"dl",
|
|
"download",
|
|
"draggable",
|
|
"dropzone",
|
|
"dt",
|
|
"em",
|
|
"embed",
|
|
"enctype",
|
|
"fieldset",
|
|
"figcaption",
|
|
"figure",
|
|
"font",
|
|
"footer",
|
|
"for",
|
|
"form",
|
|
"formaction",
|
|
"formenctype",
|
|
"formmethod",
|
|
"formnovalidate",
|
|
"formtarget",
|
|
"frame",
|
|
"frameset",
|
|
"h1",
|
|
"h2",
|
|
"h3",
|
|
"h4",
|
|
"h5",
|
|
"h6",
|
|
"head",
|
|
"header",
|
|
"headers",
|
|
"height",
|
|
"hgroup",
|
|
"hidden",
|
|
"high",
|
|
"hr",
|
|
"href",
|
|
"hreflang",
|
|
"html",
|
|
"http-equiv",
|
|
"i",
|
|
"icon",
|
|
"id",
|
|
"iframe",
|
|
"img",
|
|
"inert",
|
|
"input",
|
|
"ins",
|
|
"ismap",
|
|
"itemid",
|
|
"itemprop",
|
|
"itemref",
|
|
"itemscope",
|
|
"itemtype",
|
|
"kbd",
|
|
"keygen",
|
|
"keytype",
|
|
"kind",
|
|
"label",
|
|
"lang",
|
|
"legend",
|
|
"li",
|
|
"link",
|
|
"list",
|
|
"loop",
|
|
"low",
|
|
"manifest",
|
|
"map",
|
|
"mark",
|
|
"max",
|
|
"maxlength",
|
|
"media",
|
|
"mediagroup",
|
|
"menu",
|
|
"meta",
|
|
"meter",
|
|
"method",
|
|
"min",
|
|
"multiple",
|
|
"muted",
|
|
"name",
|
|
"nav",
|
|
"nobr",
|
|
"noscript",
|
|
"novalidate",
|
|
"object",
|
|
"ol",
|
|
"onabort",
|
|
"onafterprint",
|
|
"onbeforeprint",
|
|
"onbeforeunload",
|
|
"onblur",
|
|
"oncancel",
|
|
"oncanplay",
|
|
"oncanplaythrough",
|
|
"onchange",
|
|
"onclick",
|
|
"onclose",
|
|
"oncontextmenu",
|
|
"oncuechange",
|
|
"ondblclick",
|
|
"ondrag",
|
|
"ondragend",
|
|
"ondragenter",
|
|
"ondragleave",
|
|
"ondragover",
|
|
"ondragstart",
|
|
"ondrop",
|
|
"ondurationchange",
|
|
"onemptied",
|
|
"onended",
|
|
"onerror",
|
|
"onfocus",
|
|
"onhashchange",
|
|
"oninput",
|
|
"oninvalid",
|
|
"onkeydown",
|
|
"onkeypress",
|
|
"onkeyup",
|
|
"onload",
|
|
"onloadeddata",
|
|
"onloadedmetadata",
|
|
"onloadstart",
|
|
"onmessage",
|
|
"onmousedown",
|
|
"onmousemove",
|
|
"onmouseout",
|
|
"onmouseover",
|
|
"onmouseup",
|
|
"onmousewheel",
|
|
"onoffline",
|
|
"ononline",
|
|
"onpagehide",
|
|
"onpageshow",
|
|
"onpause",
|
|
"onplay",
|
|
"onplaying",
|
|
"onpopstate",
|
|
"onprogress",
|
|
"onratechange",
|
|
"onreset",
|
|
"onresize",
|
|
"onscroll",
|
|
"onseeked",
|
|
"onseeking",
|
|
"onselect",
|
|
"onshow",
|
|
"onstalled",
|
|
"onstorage",
|
|
"onsubmit",
|
|
"onsuspend",
|
|
"ontimeupdate",
|
|
"onunload",
|
|
"onvolumechange",
|
|
"onwaiting",
|
|
"open",
|
|
"optgroup",
|
|
"optimum",
|
|
"option",
|
|
"output",
|
|
"p",
|
|
"param",
|
|
"pattern",
|
|
"ping",
|
|
"placeholder",
|
|
"poster",
|
|
"pre",
|
|
"preload",
|
|
"progress",
|
|
"q",
|
|
"radiogroup",
|
|
"readonly",
|
|
"rel",
|
|
"required",
|
|
"reversed",
|
|
"rows",
|
|
"rowspan",
|
|
"rp",
|
|
"rt",
|
|
"ruby",
|
|
"s",
|
|
"samp",
|
|
"sandbox",
|
|
"scope",
|
|
"scoped",
|
|
"script",
|
|
"seamless",
|
|
"section",
|
|
"select",
|
|
"selected",
|
|
"shape",
|
|
"size",
|
|
"sizes",
|
|
"small",
|
|
"source",
|
|
"span",
|
|
"spellcheck",
|
|
"src",
|
|
"srcdoc",
|
|
"srclang",
|
|
"start",
|
|
"step",
|
|
"strong",
|
|
"style",
|
|
"sub",
|
|
"summary",
|
|
"sup",
|
|
"tabindex",
|
|
"table",
|
|
"target",
|
|
"tbody",
|
|
"td",
|
|
"textarea",
|
|
"tfoot",
|
|
"th",
|
|
"thead",
|
|
"time",
|
|
"title",
|
|
"tr",
|
|
"track",
|
|
"translate",
|
|
"type",
|
|
"typemustmatch",
|
|
"u",
|
|
"ul",
|
|
"usemap",
|
|
"value",
|
|
"var",
|
|
"video",
|
|
"wbr",
|
|
"width",
|
|
"wrap",
|
|
}
|
|
|
|
var oneByteAtoms = [26]Atom{
|
|
A,
|
|
B,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
I,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
P,
|
|
Q,
|
|
0,
|
|
S,
|
|
0,
|
|
U,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
}
|