FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sqlcipher/addopcodes.awk at Xcode5 · CoderLawrence/sqlcipher · GitHub
CoderLawrence
/
sqlcipher
Public
forked from
sqlcipher/sqlcipher
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
sqlcipher
/
addopcodes.awk
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (34 loc) · 1.31 KB
Breadcrumbs
sqlcipher
/
addopcodes.awk
Copy path
File metadata and controls
34 lines (34 loc) · 1.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/usr/bin/awk
#
# This script appends additional token codes to the end of the
# parse.h file that lemon generates. These extra token codes are
# not used by the parser. But they are used by the tokenizer and/or
# the code generator.
#
#
BEGIN
{
max
=
0
}
/
^
#define TK_
/ {
print
$0
if
( max
<
$3
) max
=
$3
}
END
{
printf
"
#define TK_%-29s %4d
\n
"
,
"
TO_TEXT
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
TO_BLOB
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
TO_NUMERIC
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
TO_INT
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
TO_REAL
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
ISNOT
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
END_OF_FILE
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
ILLEGAL
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
SPACE
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
UNCLOSED_STRING
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
FUNCTION
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
COLUMN
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
AGG_FUNCTION
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
AGG_COLUMN
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
CONST_FUNC
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
UMINUS
"
,
++
max
printf
"
#define TK_%-29s %4d
\n
"
,
"
UPLUS
"
,
++
max
}
Back
|
FazBrowse Home
|
New Git URL