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
125
126
127
128
129
|
---input---
SQLite version 3.4.2
Enter ".help" for instructions
sqlite> .schema
CREATE TABLE paste (paste_id integer, code text, parsed_code text, pub_date
varchar(24), language varchar(64), parent_id integer, url varchar(128));
CREATE TABLE vars (key varchar(24), value varchar(128));
sqlite> a '
...> '
...> ;
SQL error: near "a": syntax error
sqlite> %;
SQL error: near "%": syntax error
sqlite> select count(language), language from paste group by language order
...> by count(language) desc;
144|python
76|text
22|pycon
9|ruby
7|c
7|js
6|html+django
4|html
4|tex
2|html+php
1|cpp
1|scheme
sqlite>
---tokens---
'SQLite version 3.4.2\n' Generic.Output
'Enter ".help" for instructions\n' Generic.Output
'sqlite> ' Generic.Prompt
'.' Punctuation
'schema' Keyword
'\n' Text
'CREATE TABLE paste (paste_id integer, code text, parsed_code text, pub_date\n' Generic.Output
'varchar(24), language varchar(64), parent_id integer, url varchar(128));\n' Generic.Output
'CREATE TABLE vars (key varchar(24), value varchar(128));\n' Generic.Output
'sqlite> ' Generic.Prompt
'a' Name
' ' Text
"'\n" Literal.String.Single
' ...> ' Generic.Prompt
"'" Literal.String.Single
'\n' Text
' ...> ' Generic.Prompt
';' Punctuation
'\n' Text
'SQL error: near "a": syntax error\n' Generic.Traceback
'sqlite> ' Generic.Prompt
'%' Operator
';' Punctuation
'\n' Text
'SQL error: near "%": syntax error\n' Generic.Traceback
'sqlite> ' Generic.Prompt
'select' Keyword
' ' Text
'count' Keyword
'(' Punctuation
'language' Keyword
')' Punctuation
',' Punctuation
' ' Text
'language' Keyword
' ' Text
'from' Keyword
' ' Text
'paste' Name
' ' Text
'group' Keyword
' ' Text
'by' Keyword
' ' Text
'language' Keyword
' ' Text
'order' Keyword
'\n' Text
' ...> ' Generic.Prompt
'by' Keyword
' ' Text
'count' Keyword
'(' Punctuation
'language' Keyword
')' Punctuation
' ' Text
'desc' Keyword
';' Punctuation
'\n' Text
'144|python\n' Generic.Output
'76|text\n' Generic.Output
'22|pycon\n' Generic.Output
'9|ruby\n' Generic.Output
'7|c\n' Generic.Output
'7|js\n' Generic.Output
'6|html+django\n' Generic.Output
'4|html\n' Generic.Output
'4|tex\n' Generic.Output
'2|html+php\n' Generic.Output
'1|cpp\n' Generic.Output
'1|scheme\n' Generic.Output
'sqlite> ' Generic.Prompt
'\n' Text
|