Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
820b51c1
Commit
820b51c1
authored
Apr 13, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2627 Let it be known what pgen generates
parent
c477427e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
Include/graminit.h
Include/graminit.h
+2
-0
Parser/printgrammar.c
Parser/printgrammar.c
+3
-0
Python/graminit.c
Python/graminit.c
+2
-0
No files found.
Include/graminit.h
View file @
820b51c1
/* Generated by Parser/pgen */
#define single_input 256
#define file_input 257
#define eval_input 258
...
...
Parser/printgrammar.c
View file @
820b51c1
...
...
@@ -13,6 +13,7 @@ static void printlabels(grammar *, FILE *);
void
printgrammar
(
grammar
*
g
,
FILE
*
fp
)
{
fprintf
(
fp
,
"/* Generated by Parser/pgen */
\n\n
"
);
fprintf
(
fp
,
"#include
\"
pgenheaders.h
\"\n
"
);
fprintf
(
fp
,
"#include
\"
grammar.h
\"\n
"
);
printdfas
(
g
,
fp
);
...
...
@@ -31,6 +32,8 @@ printnonterminals(grammar *g, FILE *fp)
dfa
*
d
;
int
i
;
fprintf
(
fp
,
"/* Generated by Parser/pgen */
\n\n
"
);
d
=
g
->
g_dfa
;
for
(
i
=
g
->
g_ndfas
;
--
i
>=
0
;
d
++
)
fprintf
(
fp
,
"#define %s %d
\n
"
,
d
->
d_name
,
d
->
d_type
);
...
...
Python/graminit.c
View file @
820b51c1
/* Generated by Parser/pgen */
#include "pgenheaders.h"
#include "grammar.h"
static
arc
arcs_0_0
[
3
]
=
{
...
...
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