Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a0878d33
Commit
a0878d33
authored
Nov 20, 2001
by
arjen@co3064164-a.bitbike.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to reserved words script.
Updated reserved words list in manual.
parent
2b17a22a
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
74 deletions
+88
-74
Docs/Support/update-reserved-words.pl
Docs/Support/update-reserved-words.pl
+9
-3
Docs/manual.texi
Docs/manual.texi
+79
-71
No files found.
Docs/Support/update-reserved-words.pl
View file @
a0878d33
#!/usr/bin/perl
# Based on a Emacs macro by david@mysql.com
# Implemented in Perl by jeremy@mysql.com
# 2001-11-20 Fixups by arjen@mysql.com, 2 keywords and 15 synonyms were missing
print
STDERR
"
Scanning lex.h for symbols..
\n
";
open
LEX
,
"
<../sql/lex.h
";
while
(
$line
=
<
LEX
>
)
{
if
(
$line
=~
/\{\s
+\"([A-Z_]+)\",\s+SYM\(([A-Z_]+)\)
/
)
{
$words
{
$
2
}
=
$1
;
if
(
$line
=~
/\{\s
*\"([A-Z_]+)\"
/
)
{
$words
{
$
1
}
=
$1
;
}
elsif
(
$line
=~
/sql_functions/
)
{
last
;
};
...
...
@@ -15,7 +19,9 @@ print STDERR "Scanning sql_yacc.yy for non-reserved words...\n";
open
YACC
,
"
<../sql/sql_yacc.yy
";
while
(
<
YACC
>
!~
/^keyword:/
)
{};
while
((
$line
=
<
YACC
>
)
=~
/[\s|]+([A-Z_]+)/
)
{
delete
$words
{
$1
};
$keyword
=
$1
;
$keyword
=~
s/_SYM//
;
delete
$words
{
$keyword
};
};
close
YACC
;
...
...
Docs/manual.texi
View file @
a0878d33
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment