Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32fce70

Browse files
author
Michael Meskes
committed
Added new version of ecpg's parser generator script. This one was written by
Andy Colson <andy@squeakycode.net>.
1 parent8e2d8b1 commit32fce70

File tree

4 files changed

+653
-5
lines changed

4 files changed

+653
-5
lines changed

‎src/interfaces/ecpg/preproc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ else
5757
@$(missing) flex $< $@
5858
endif
5959

60-
preproc.y: ../../../backend/parser/gram.yparse.pl ecpg.addons ecpg.header ecpg.tokens ecpg.trailer ecpg.type
61-
$(PERL)$(srcdir)/parse.pl$(srcdir)<$<>$@
60+
preproc.y: ../../../backend/parser/gram.yparse2.pl ecpg.addons ecpg.header ecpg.tokens ecpg.trailer ecpg.type
61+
$(PERL)$(srcdir)/parse2.pl$(srcdir)<$<>$@
6262
$(PERL)$(srcdir)/check_rules.pl$(srcdir)$<
6363

6464
ecpg_keywords.oc_keywords.okeywords.opreproc.oparser.o: preproc.h

‎src/interfaces/ecpg/preproc/README.parser

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ECPG modifies and extends the core grammar in a way that
33
defined in ecpg.tokens, types are defined in ecpg.type
44
2) most tokens from the core grammar are simply converted
55
to literals concatenated together to form the SQL string
6-
passed to the server, this is done byparse.pl.
6+
passed to the server, this is done byparse2.pl.
77
3) some rules need side-effects, actions are either added
88
or completely overridden (compared to the basic token
99
concatenation) for them, these are defined in ecpg.addons,
@@ -20,7 +20,7 @@ rules concatenated together. e.g. if gram.y has this:
2020
ruleA: tokenA tokenB tokenC {...}
2121
then "dumpedtokens" is "ruleAtokenAtokenBtokenC".
2222
"postfix" above can be:
23-
a) "block" - the automatic rule created byparse.pl is completely
23+
a) "block" - the automatic rule created byparse2.pl is completely
2424
overridden, the code block has to be written completely as
2525
it were in a plain bison grammar
2626
b) "rule" - the automatic rule is extended on, so new syntaxes

‎src/interfaces/ecpg/preproc/ecpg.trailer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ ECPGCKeywords: S_AUTO{ $$ = mm_strdup("auto"); }
15911591
* CONNECTION can be added back in all_unreserved_keyword, but CURRENT and
15921592
* INPUT are reserved for ecpg purposes.
15931593
*
1594-
* The mentioned exclusions are done by $replace_line settings inparse.pl.
1594+
* The mentioned exclusions are done by $replace_line settings inparse2.pl.
15951595
*/
15961596
all_unreserved_keyword: unreserved_keyword{ $$ = $1; }
15971597
| ECPGunreserved_interval{ $$ = $1; }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp